this post was submitted on 27 Jul 2025
68 points (98.6% liked)

Selfhosted

60542 readers
608 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I am looking for recommendations for an open source self-hosted ~~version control system~~ source code hosting service. I found a few, but I can't decide on which one to pick:

If there's a better one than the ones I've listed here, I'd love to hear about it!

I care primarily about privacy and security, if that makes any difference.

you are viewing a single comment's thread
view the rest of the comments
[–] i_am_not_a_robot@discuss.tchncs.de 10 points 11 months ago (3 children)

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.

[–] vividspecter@aussie.zone 9 points 11 months ago

Having a web UI is useful even if you're not using the extra tools. Not mandatory of course, but nice.

[–] Arigion@feddit.org 2 points 11 months ago

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.

[–] kattfisk@lemmy.dbzer0.com 1 points 11 months ago (1 children)

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 points 11 months ago (1 children)

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 1 points 11 months 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.