how to change branch name in git linux code example Example: rename branch git git branch -m <new_name>