Skip to content

Instantly share code, notes, and snippets.

@mariusbutuc
Created September 21, 2012 23:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariusbutuc/3764448 to your computer and use it in GitHub Desktop.
Save mariusbutuc/3764448 to your computer and use it in GitHub Desktop.
Rename remote Git branch
git push origin previous_name:new_name
git branch new_name origin/new_name
# http://stackoverflow.com/a/3790682/341929
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment