To use with Git
I use gitea
I mainly just use bare SSH and/or point my web server to my repos as I don’t really need a whole UI for stuff I’m pretty much the only one that will ever use it.
I feel like it’s a git feature that’s often overlook by those that have only used to GitHub/GitLab/Gitea before. Git was originally designed to just be a folder on a server you have SSH access (read-write) or HTTP(S) access (read-only).
I’ve used Gogs and Gitea in the past but found it overkill for my needs.
The only selfhosted github I know about is github enterprise.
If you just want to host git repos, gitea, and gitlab are good. You don’t need that to host git though, git is peer based and doesn’t require a fancy dashboard to work.
If you want a way to self host git (not github) repositories you can check this list https://www.slant.co/topics/1440/~best-self-hosted-web-based-git-repository-managers