Created
December 9, 2018 11:44
-
-
Save viniciusCamargo/d6bcf4819e4e608ea80bd879402ee559 to your computer and use it in GitHub Desktop.
Git: push to a different remote branch
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 add [name-of-the-remote] [https-repository-url] | |
git remote set-url [name-of-the-remote] [ssh-repository-url] # avoid enter password every push | |
git push [name-of-the-remote] [name-of-the-local-branch]:[name-of-the-remote-branch] | |
Reference: | |
https://stackoverflow.com/a/6565661 | |
https://stackoverflow.com/a/13897766 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment