Global Feed Post Login
Replying to Avatar DanConwayDev

this is exactly what I was hoping for. the flow the current git remote helper is expecting is very similar to your video:

* song has a white list of npubs that can create repositories (just sk 79 in this example?)

* create git repo locally: `git init && echo "example" > README.md && git commit -am "initial commit"`

* create git announcement `ngit init --identifier my-repo --relays wss://git.oursong.com/npub123/my-repo --clone https://git.oursong.com/npub123/my-repo`

* `git remote add origin nostr://npub123/my-repo?relayhint=git.oursong.com | git push -u`

* song will receive the receive the state announcement nostr event which will authorise the push

Avatar
fiatjaf 1y ago

What is the state announcement?

Reply to this note

Please Login to reply.

Discussion

Avatar
DanConwayDev 1y ago

https://nips.nostr.com/34#repository-state-announcements

Thread collapsed