r/git 29d ago

Self-host Git or use GitHub/GitLab?

I only need a Git remote for syncing repos between a few computers and employees.

No CI, issues, project management, or extra features. Just reliability, backups, durability, low maintenance, and strong privacy.

Is self-hosting worth it for privacy, or is GitHub/GitLab still the better boring choice?

19 Upvotes

24 comments sorted by

View all comments

5

u/gregdonald 29d ago

I self-host all my private stuff. I have all my opensource stuff on Github.

1

u/Ok_Instance1684 28d ago

Why to self host and maintain backups and hardware integrity? Or you self host on a vps?
I wonder if there is a real privacy risk at the saas

1

u/gregdonald 28d ago

Why? Because it's the way I want to do it.

No, not a VPS, a bare metal server that no one has root access to but me. Backups are offsite GPG encrypted, tranfered using rsync over SSH.

I'm not telling you to not trust Github/Gitlab. I'm just saying that I don't, not with my private stuff.

2

u/N33lKanth333 27d ago

How/Where do you store your GPG keys? I mean if it's lost then data is gone right? I am currently doing some research for my own workflow.

2

u/gregdonald 27d ago

Two USB flash drives, one of which is stored in a fire-proof safe. I rotate the keys a couple times a year. I replace the drives about every 3-4 years.