• 0

How to rename a local branch in git

Its not always possible to come up with that perfect branch name at first attempt. Git lets you easily rename a local branch by issuing the following command.

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