Mirror Git Repositories View article history Edit article

Published: , Updated:
Talks about: <a class="post-tag post-tag-git" href="/tags/git">git</a>, <a class="post-tag post-tag-mirror" href="/tags/mirror">mirror</a>, and <a class="post-tag post-tag-push" href="/tags/push">push</a>

In case you want to make use of the decentralized nature of Git, consider using multiple push targets like this:

$ git remote set-url origin --push --add [email protected]/project.git
$ git remote set-url origin --push --add [email protected]/project.git

Note that the first call to set-url will overwrite an existing remote creating with git clone. Any additional call will actually recognize the --add option and add the new target to an existing remote.