Self hosting git repos can be super minimal. If you don’t have a lot of users or repos, just use ssh. Hell you can host a repo on a local SMB network share eben.
Reason I went or self-hosting Forgejo is to know it when federation comes along for real.
I'd love being able to federate my self-hosted Forgejo with my friends self-hosted Forgejo servers. https://forgejo.org/2025-01-monthly-update/#federation
If you’re not stuck on git, give fossil a try. It’s a distributed source code version control with an integrated bug tracker, wiki, forum, and more. All that in in one 3 MB sized binary.
It can even mirror to GitHub and export/import git repositories.
Traditional server-based self-hosting will have lower average uptime, will be easier to attack, and will have a much higher chance of disappearing out of nowhere (bus factor event, or for any other reason).
A decentralized or distributed solution would make more sense as a suggestion here. Radicale (this one) is such an effort I'm aware of, although I never tried it myself or take a look at its architecture.
Traditional server-based self-hosting will have lower average uptime, will be easier to attack, and will have a much higher chance of disappearing out of nowhere (bus factor event, or for any other reason).
It's not a single point of failure at least but if your particular project is targeted then yeah. I was thinking more about using it for private repos, where it isn't public at all but that's a separate case.