mudar o nome do ramo git
git branch -m <new_name>
git muda o nome da ramificação local
git branch -m <oldname> <newname>
editar o nome da ramificação git
$ git checkout Branch-Name-You-Want-to-Change
$ git branch -m New-Branch-Name
mudar o nome de um ramo que o alredy empurrou
#checkout to the branch
git checkout old_branch_name
#in the same branch run the command
git branch -m new_branch_name