@faizmokh's blog

How to change git branch name

A quick one. Here’s how to change your git branch name:

If you want to rename of your current local branch:

1git branch -m new-branch-name

If you want to change the name of a different local branch

1git branch -m old-branch new-branch-name

That’s it. Bye.