You can host your own git httpv2 server and add it to nip34 events for users to clone the code.
You also don't need to publish git. You can just share source packages (or git archives) for users or contributors to be able to see and edit the code. If you need community patches, they can just send ...