Skip to content

Instantly share code, notes, and snippets.

@brev
Last active August 29, 2015 14:05
Show Gist options
  • Save brev/1bd3de77eb5e4bfff37a to your computer and use it in GitHub Desktop.
Save brev/1bd3de77eb5e4bfff37a to your computer and use it in GitHub Desktop.
Git branching with branch renaming
# 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