Skip to content

Instantly share code, notes, and snippets.

@jamesattard
Created April 2, 2018 23:08
Show Gist options
  • Save jamesattard/4082ee01a3500e21f9b28b5df43a74cc to your computer and use it in GitHub Desktop.
Save jamesattard/4082ee01a3500e21f9b28b5df43a74cc to your computer and use it in GitHub Desktop.
Rename git branch
git branch -m old_branch new_branch
git push --set-upstream origin new_branch
git push origin :old_branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment