how to rename a git branch in github code example Example: rename local branch github git branch -m oldname newname