Git rename branch

Sometimes you just need to rename a branch, might it be because you mispelled ( πŸ˜‰) something or because the referenced issue was changed or whatever. This will do it:

1.Switch to your local branch

git checkout $branch_name

Rename it

git branch -m $new_branch_name

ThatΒ΄s it. Let me know if it helped you



Leave a Reply