• Home /
  • Blog /
  • How to rename local branch in Git
git-tutorials.png

How to rename local branch in Git

If you want to rename local git branch you can do it using the following command

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

If you want to rename your current git branch you don't need to provide old branch name

git branch -m new-branch-name

how to rename git branch


Comments

Search

Yaplex logo white text

Yaplex is an IT Consulting and .NET development company co-founded by .NET Developer Alex Shapovalov who lives in Mississauga and provides software development services in Toronto, Mississauga, and GTA.

Contact Information

Toronto, Canada
Phone: +1 647 328 3809