change branch name github in terminal code example Example: rename local branch github git branch -m oldname newname