1.本地分支重命名
git branch -m oldName newName
2.将重命名后的分支推送到远程分支
git push origin newName
3.删除远程的旧分支
git push --delete origin oldName
GitHub地址:https://github.com/mingyang66/spring-parent/tree/master/doc/git
git branch -m oldName newName
git push origin newName
git push --delete origin oldName
GitHub地址:https://github.com/mingyang66/spring-parent/tree/master/doc/git