rename branch name cmd code example Example 1: change branch name $ git branch -m <new_name> Example 2: git rename branch git push origin :old-name new-name