3 ms·
Took this opportunity to set up my own Git server on a VPS I have. It was actually extremely simple to set up the server, limit the git account (ssh only) to on
by thosakwe 7y ago
Took this opportunity to set up my own Git server on a VPS I have. It was actually extremely simple to set up the server, limit the git account (ssh only) to only using git-shell, and adding gitweb with basic auth in an nginx setup with letsencrypt, HTTP/2, and FastCGI. Took maybe 20 minutes, and most of it was looking up the necessary commands.
That being said, I am, and probably will still be a massive GitHub user, because I value its community aspect. But I also now have unlimited, truly-private Git hosting for peanuts (cheap DigitalOcean server), which is always nice.
- gfdgfdg 7y agoYou can also use gitea, which is setup very quickly as uses almost no resources
- thosakwe 7y agoI definitely considered it, but it struck as more of a "host your own Github," where really all I needed was "host your own Git," which of course comes out-of-the-box.
- tracker1 7y agodon't even need that much... just SSH + Files. On server: mkdir -p ~/repos/foo.git cd ~/repos/foo.git git --bare init On desktop: git remote add backup ssh://user@server/~/repos/foo.git git push --all backup Or something similar, been a while. Can use an absolute path too if sharing, need that path setup for +rwx for user/group. Used to do this as a quick and dirty remote for git usage. You can also setup a git user and add your public key, but find that isn't really necessary. edit: looked up commands, made a couple minor tweaks. note: this doesn't include any kind of LFS support if you're needing it, consider a more complete install, unsure on gitea or gitlab etc.