git branch Get current branch git branch --show-current rename branch # rename current branch git branch -m <newname> # rename another branch git branch -m <oldname> <newname> set tracking branch git branch -u <remote>/<branch>