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