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