Skip to content

Instantly share code, notes, and snippets.

@Mukundhan-I2I
Created July 4, 2018 05:41
Show Gist options
  • Save Mukundhan-I2I/b59eb8896547c94534337eba3634ebbf to your computer and use it in GitHub Desktop.
Save Mukundhan-I2I/b59eb8896547c94534337eba3634ebbf to your computer and use it in GitHub Desktop.
rename remote branch
If you really just want to rename branches remotely (without renaming any local branches at the same time) you can do this with a single command like
git push <remote> <remote>/<old_name>:refs/heads/<new_name> :<old_name>
https://stackoverflow.com/a/21302474/2586761
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment