Skip to content

Instantly share code, notes, and snippets.

@khalidx
Created September 20, 2018 01:07
Show Gist options
  • Save khalidx/f854a42f547af73733cb6cdde383b80f to your computer and use it in GitHub Desktop.
Save khalidx/f854a42f547af73733cb6cdde383b80f to your computer and use it in GitHub Desktop.

Renaming a git branch

To rename a local git branch:

git branch -m <current_name> <new_name>

This is expecially useful when creating a feature under the wrong name when using git flow.

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