Last Updated: December 26, 2018
·
1.547K
· revagomes

Renaming a branch on git

If for some reason you need to rename your branch don't be afraid it's really simple.

Just type the command below:

git branch -m [current_name] [new_name]

1 Response
Add your response

Thats good to know, I have always done this:

git co oldname

git co -b newname

git branch -d oldname

over 1 year ago ·