Skip to content

Instantly share code, notes, and snippets.

@chrisedington
Created February 8, 2017 12:03
Show Gist options
  • Save chrisedington/d5d06c81f290a9a0ef3e6926b9502d86 to your computer and use it in GitHub Desktop.
Save chrisedington/d5d06c81f290a9a0ef3e6926b9502d86 to your computer and use it in GitHub Desktop.
# Rename local branch
git branch -m old new
# Remove old branch
git push origin :old
# Create and push the new branch and set the local branch to track the new remote branch
git push --set-upstream origin new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment