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

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *