I use Gitea myself and definitely recommend it or even a self-hosted GitLab CE setup over this 'hack'. I mean you could just do git init --bare in a directory (reponame) under the git user directory, set up sshd_config and off you go. Just use git remote add origin firstname.lastname@example.org:reponame.git on your local machine. If you wish to keep the GitHub 'mirror' updated, set up an access token and a post-receive hook containing git push --mirror --quiet https://ghusername:email@example.com/ghusername/reponame.git.
git init --bare
git remote add origin firstname.lastname@example.org:reponame.git
git push --mirror --quiet https://ghusername:email@example.com/ghusername/reponame.git
All of this can be done with a few clicks on the Gitea/GitLab UI. Good post by the way :)
Glad you liked it. Tbh I didn't even know gitea existed until I posted this comment and Julian brought it to my attention.
Yes there are always tons of ways to do something, I am no expert on git but I need to get more familiar with --mirror for sure since I haven't used it before.
Btw I just got done installing gitea, and it's looking good!
It's just the Blade templating engine, so you can customise it a lot. Clone the go-gitea/gitea repo from GitHub and look for the templates folder and move it to the custom folder in the Gitea's installation directory. My setup is at git.ghosh.pro. Cheers!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.