3 ms·
It's worth mentioning that it's also very easy to set up git for use over ssh just about anywhere (digitalocean, linode, VM or container at home, etc) The offi
by GrinningFool 11y ago
It's worth mentioning that it's also very easy to set up git for use over ssh just about anywhere (digitalocean, linode, VM or container at home, etc)
The official docs cover it pretty well:
https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-...
If it's for your own use, you can skip the part about creating a `git` user, and host the files in eg `/home/$USER/repositories` instead. The repository setup instructions remain the same, just the path differs, and the `authorized_keys` file to add keys to will be in `/home/$USER` instead of `/home/git`.
- Symbiote 11y agoIt's so simple, I think it's worth showing just how simple. For a single user who has already SSH access to some server, and has installed Git on that server with apt/yum/whatever: On the server: mkdir project.git; cd project.git git init --bare In an existing Git repository on your client: git add remote newserver user@example.net:project.git git push newserver master
- haldean 11y agoAnd then you can `pip install klaus` to get a nice web UI; SSH-based git plus klaus[0] is what I'm using[1] instead of Github now and it's great. [0]: https://github.com/jonashaag/klaus https://github.com/jonashaag/klaus [1]: http://git.haldean.org http://git.haldean.org