How to rename a local branch in git

Its not always pos­si­ble to come up with that per­fect branch name at first attempt. Git lets you eas­ily rename a local branch by issu­ing the fol­low­ing 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 *