Last active
August 29, 2015 14:05
-
-
Save brev/1bd3de77eb5e4bfff37a to your computer and use it in GitHub Desktop.
Git branching with branch renaming
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
# checkout remote branch and rename locally | |
git checkout --track -b them-master them/master | |
# push to renamed branch | |
git push them them-master:master | |
# pull from renamed branch | |
git pull them master:them-master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment