I prefer self-hosting Git. Those options are more mature than most Nostr options, and with federation being implemented in Forgejo (which is a perfect use case for federated protocols) I see that it is the best option.
I am considering implementing Nostr sign-in as an external IdP if the need arises.