Posted on February 21 - 2020 in

How to rename a local git branch

Sometimes its useful to be able to rename the local branch that you are working on in Git.

The good news is, using the command line its straight forward. All you need to use is the following command:

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

type git branch and you will now see that the old name of your branch has been changed to the name you typed!

Hope this helped you out!

Start your project

If you feel I can help you with web design project I'd love to hear from you. Getting started is as easy as dropping me an email to start the discussion.

Start Project