Created
May 27, 2020 19:23
-
-
Save duartealexf/22b418c18130e1ab2aa216e1d2335039 to your computer and use it in GitHub Desktop.
Push to a second remote
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git remote -v | |
origin https://github.com/repos-a.git (fetch) | |
origin https://github.com/repos-a.git (push) | |
another https://github.com/repos-b.git (fetch) | |
another https://github.com/repos-b.git (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