This is not true. There are lots of places where ssh/vpn is blocked by a firewall while https usually is allowed. So if you want to access/push code while travelling it might be really helpful to have https access to the repo. That was the only reason for me to set up gitlab years ago.
Comment on Recommendations for a version control system
i_am_not_a_robot@discuss.tchncs.de 4 days ago
You’re missing GitLab. I’d be looking at GitLab or Forgejo.
But you might not need this. When you access a private Git repository, you’re normally connecting over SSH and authenticating using SSH keys. By default, if you have Git installed on a server you can SSH to and you have a Git repository on that server in a location you can access, you can use that server as a Git remote. You only really want one these services if you want the CI pipelines or collaboration tools.
Arigion@feddit.org 4 days ago
kattfisk@lemmy.dbzer0.com 4 days ago
I feel like you made it sound a bit backwards :)
There’s nothing to install on a “git server”, git doesn’t have a server component. You can point your git client to a remote place where it can store its files using SSH. But you don’t install anything on the server for this.
Which is why self hosting a git remote is super easy. All you need is a server with ssh and a little bit of storage.
If you just want to sync code between different computers and have a backup, that’s all you need.
i_am_not_a_robot@discuss.tchncs.de 3 days ago
Git does have a server component. When git connects to an ssh remote it executes an ssh command that needs to be present.
kattfisk@lemmy.dbzer0.com 2 days ago
You are right! I was fooled by my server already having git installed and this requirement not being mentioned anywhere. I guess that explains why it uses SSH rather than SCP/SFTP.
vividspecter@aussie.zone 4 days ago
Having a web UI is useful even if you’re not using the extra tools. Not mandatory of course, but nice.