Want to move a branch in Git because another branch with the same name exists?

git branch -m newbranchname

You may have created the same branch name in your local repository called branchname. You want to move it. This is how:

git branch -m newbranchname

if you are on the branch currently.

Otherwise:

git branch -m branchname newbranchname