I self-host forgejo, it's one of the easiest systems I self-host.
But which features other than a plain git repo are you looking for? That will mostly determine your options. There are tons of git repos, and even just a plain git repo on a server with an ssh tunnel is enough if you don't need anything beyond that.