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]
Written by Renato Vasconcellos Gomes
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Branch
Authors

niklongstone
42.01K

muzzlefork
11.98K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#