// If you are in a different branch: git branch -m old-name new-name // If you are in the same branch: git branch -m new-name