Interesting approach, but I think I would use a software like Gitea for the remote-git stuff :)
Will definitely give that a try, looks like that is a full front end, right?
Yes, it's a lot like GitHub, just that it's free and open source and you can host it on your own server.
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 email@example.com: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:firstname.lastname@example.org/ghusername/reponame.git.
git init --bare
git remote add origin email@example.com:reponame.git
git push --mirror --quiet https://ghusername:firstname.lastname@example.org/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.