git rename branch

Shell
git branch -m <oldname> <newname> # Any Branch
git branch -m <newname> # Current Branch

# For windows if you get "Branch already exists" error
git branch -M <newname>git branch -m <newname>
git branch -m <new_name>$ git checkout Branch-Name-You-Want-to-Change
$ git branch -m New-Branch-Namegit push origin :<branch_to_rename>
git checkout -b <new_branch_name>
git push --set-upstream origin <new_branch_name>How to rename a branch on git
Source

Also in Shell: