Skip to content

Instantly share code, notes, and snippets.

@deoren
Last active January 23, 2018 03:52
Show Gist options
  • Save deoren/5a94381592d264305dc96f475dc767e2 to your computer and use it in GitHub Desktop.
Save deoren/5a94381592d264305dc96f475dc767e2 to your computer and use it in GitHub Desktop.
Rename Git branches
git branch --move old_branch new_branch
git checkout new_branch
git push --set-upstream origin new_branch
git push origin --delete old_branch
@deoren
Copy link
Author

deoren commented Jan 23, 2018

As of the time this Gist entry was created, GitHub does not support notifications for comments for mentions to Gist entries (see isaacs/github#21 for details). Please contact me via Twitter or file an issue in the deoren/leave-feedback repo (created for that very purpose) if you wish to receive a response for your feedback. Thank you in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment