Skip to content

Instantly share code, notes, and snippets.

@zeuxisoo
Created May 6, 2015 11:24
Show Gist options
  • Save zeuxisoo/0b21a30749f33c46e7e6 to your computer and use it in GitHub Desktop.
Save zeuxisoo/0b21a30749f33c46e7e6 to your computer and use it in GitHub Desktop.
Rename remote branch name
git branch new-branch-name origin/old-branch-name
git push origin --set-upstream new-branch-name
git push origin :old-branch-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment