Last Updated: February 25, 2016
·
4.435K
· mull

Renaming git branches

Quite often I end up wanting to rename the branch I'm working in, be it a support, feature or a hotfix branch. Does not matter. To my surprise this is really easy!

git branch -m <old_branch_name> <new_branch_name>

Easy as pie!