branche de renommage git
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>
modifier le nom de la branche git
$ git checkout Branch-Name-You-Want-to-Change
$ git branch -m New-Branch-Name
renommer la branche git
git branch -m <new_name> //currenct branch switch name
git branch -m <select_branch_name> <new_branch_name>
renommer une branche distante dans git
git push origin :<branch_to_rename>
git checkout -b <new_branch_name>
git push --set-upstream origin <new_branch_name>