how to rename a branch in cli code example Example: git rename local branch git branch -m <oldname> <newname>