Skip to content

Instantly share code, notes, and snippets.

@raym
Created April 5, 2015 18:42
Show Gist options
  • Save raym/325ca2de2d2e03dda8fb to your computer and use it in GitHub Desktop.
Save raym/325ca2de2d2e03dda8fb to your computer and use it in GitHub Desktop.
rename a branch that you've pushed to a remote
git push origin :oldname
git branch -m oldname newname
git push origin newname
@raym
Copy link
Author

raym commented Apr 5, 2015

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