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