赞
踩
1、修改本地分支名称
git branch -m oldBranchName newBranchName
2、将本地分支的远程分支删除
git push origin :oldBranchName
3、将改名后的本地分支推送到远程,并将本地分支与之关联
git push --set-upstream origin newBranchName
转自:https://blog.csdn.net/weixin_42343307/article/details/125648147
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。