Rename a Git Branch If you are on the branch you want to rename git branch -m newname If you are not on that branch git branch (-m | -M) [<oldbranch>] <newbranch> source