Mirror Git Repositories View article history Edit article

Talks about: , , and

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 git@example.com/project.git
$ git remote set-url origin --push --add git@another.com/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.