Any nostr/git implementation should allow git repository urls to be their own replaceable kind that are queryable by available commit hashes (as a tag). Urls need to be able to change or else everything to them will be fragile.
Git commit hashes are a great indexing tool for querying because they share similar cryptographic hash properties that make nostr event ids unique. Commit hashes as tags can power decentralized repository discovery in a censorship resistant way.
See my first attempt at writing a NIP here - have not submitted a PR as there are already three open on the topic with some overlap. Looking for feedback if you think this is on the right track!
nostr:note19a92009jxr0jk36pxqtg8z85keku945a6pjq58maqhgj7vmsyx7sqrrnu6