Skip to content

Instantly share code, notes, and snippets.

@douglas
Created July 23, 2011 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglas/1100860 to your computer and use it in GitHub Desktop.
Save douglas/1100860 to your computer and use it in GitHub Desktop.
Rename (it seems to create a new) branch on github
Execute this command:
$ git push origin remote_branch_name:new_branch_name
Remember that you should edit the repository info to change to the new branch so you can delete the old one with this command:
$ git push origin :old_branch_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment