Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Push to a second remote
$ git remote -v
origin (fetch)
origin (push)
another (fetch)
another (push)
$ git fetch another
$ git checkout -b another/master -t another/master
# git push <remote-name> <local-branch-name>:<remote-branch-name>
$ git push another another/master:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment