Live data from Hacker News

Ask HN: How do you sync your Git repos across machines at home?

news.ycombinator.com

1–10 of 21 posts

Ask HN: How do you sync your Git repos across machines at home?

#1
I have a multi machine setup and I don't want to use a third party service as a proxy to what I could be doing locally.

One obvious answer is to stand up my own local git server, perhaps finally put those Raspberry-pi's.

Any suggestions to improve upon this?

Even if I do go down the path of the raspberry pi, how do I configure it to hide behind the router where it is shielded from the external internet. (I want it completely disjointed from the internet if possible)

Re: Ask HN: How do you sync your Git repos across machines at home?

#4

what, no firewall?...some bots would be happy to know ur ip address about git, yes a server is the answer

Yeah of course a firewall, I just don't know enough about the exact setup there, and that's part of my question.

Diving into that rabbit hole now.

Re: Ask HN: How do you sync your Git repos across machines at home?

#10
You already have everything you need to do this with just git. Just make a repo (might need to be a bare repo) on whatever machine you want to make the remote and then clone from it using ssh on the other machines. Then you can push and pull just as if the remote was in github or whatever.

If you want more functionality than that, gitlab has a free tier that can be self-hosted. same with gittea.

Post reply on HN