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
Best,
Frank