Hacker News new | ask | show | jobs
by vineyardlabs 666 days ago
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.

1 comments

You don't need to use a bare repo necessarily if you want to push/pull between two working repos, without a central "bare" repo locally, you just need to tell git to update when receiving:

`git config receive.denyCurrentBranch updateInstead`