If you want to rename a branch while pointed to any branch, do: git branch -m If you want to rename the current branch, you can do: git branch -m