edit branch name git

Shell
git branch -m <newname>
How to rename a branch on git$ git checkout Branch-Name-You-Want-to-Change
$ git branch -m New-Branch-Name
Source

Also in Shell: