Hello everyone!

We have been investing plenty of personal time and energy for many years to share our knowledge with you all. However, we now need your help to keep this blog running. All you have to do is just click one of the adverts on the site, otherwise it will sadly be taken down due to hosting etc. costs. Thank you.

You just want to rename your current branch name to something else. For that, we use git branch -m. For more information, click git merge link.


Rename


inanzzz@inanzzz:~/project$ git branch
develop
* my-feature-branch
inanzzz@inanzzz:~/project$ git branch -m my-feature-branch my-feature-branch-new
inanzzz@inanzzz:~/project$ git branch
develop
* my-feature-branch-new