how to change the name of git branch code example Example: change local branch name git branch -m <newname>