1. 重命名分支 对本地分支进行重命名: $ git branch -m oldName newName 删除远程对应的旧分支: $ git push origin --delete oldName 将本地的新分支推送到远程: $ git push -u origin newName