rename branch name in git local code example Example: git rename local branch git branch -m <oldname> <newname>