#asknostr

#ngit question.

( http://gitworkshop.dev/repo/ngit )

Git inside Nostr is pretty cool, but how do I share my repo with others so they can clone it?

I can see initialising the repo has broadcast a Kind-30617:

{'id': 'b8eedc4fe0ef8ee291b0faae72d9714873a42a30b51f831d774cc68e28947ae1', 'pubkey': 'a96a35a224402b8075c4da20f0477896afcc3395b6fad63e30a648a8222a6a69', 'created_at': 1713579124, 'kind': 30617, 'tags': [['d', 'minitru'], ['r', 'b01d734a8d52543a0ec2614b0d90b23723ab2257'], ['name', 'minitru'], ['description', 'A system for building individualised auto-moderators for Nostr clients'], ['clone', 'uehkilylfklvvrx7rj7pua2piprkoc3l26hwk4w5wyeeingbwg6fkpid.onion'], ['web', 'https://gitworkshop.dev/repo/minitru'], ['relays', 'wss://theforest.nostr1.com/,wss://nostr.sovbit.host/'], ['maintainers', 'a96a35a224402b8075c4da20f0477896afcc3395b6fad63e30a648a8222a6a69']], 'content': '', 'sig': '0e95315b42f1ff67f8ceca1cb4f7b5252d43c746c45c37278cfa4fb68ff389d41af0f0f602fa9d0899f5860499d4650f2bef699e19a398fb652089c077a93544'}

How may others use ngit to clone it?

Reply to this note

Please Login to reply.

Discussion

I'm curious about this feature(bip34) myself, how have you found the implementation?

As nostr:npub1l5sga6xg72phsz5422ykujprejwud075ggrr3z2hwyrfgr7eylqstegx9z said, you need to specify URLs to your git repository hosted on one or more git servers that user can use to clone the repository and pull the latest master branch from.

Right now user would find your repository on gitworkshop.dev or patch34.com and copy the clone URL.

In the future ngit could add repository search so users don't need to leave the command line.

If you add a 'earliest-unique-commit' field to your repository event (automatically added by `ngit init`), ngit should automatically find the repo event when others run ngit commands within your repo theynjust cloned.

I'm planning on writing a git helper so users can clone nostr://naddr123 instead. That way you could change the git server URL and users would automatically switch to using the new server.