4 ms·
A lot of people posting complex things. All you need is SSH. ssh sparkling@git.example.com mkdir project-1.git cd project-1.git git init —-bare
by rovr138 6y ago
A lot of people posting complex things. All you need is SSH.
ssh sparkling@git.example.com
mkdir project-1.git
cd project-1.git
git init —-bare
exit
git remote add alternate sparkling@git.example.com:project-1.git
For the syncing part. If you don’t want to do it manually, you can add multiple destinations on the same remote. Someone already mentioned it here, https://news.ycombinator.com/item?id=23818609 https://news.ycombinator.com/item?id=23818609, https://jigarius.com/blog/multiple-git-remote-repositories https://jigarius.com/blog/multiple-git-remote-repositories