command to rename branch in git and push it to githup code example Example: rename local branch github git branch -m oldname newname