git 修改远程分支名称

首先 git branch -m 旧分支名 新分支名

其次 git push --delete origin 旧分支名

将新分支名推上去 git push origin 新分支名

将新本地分支和远程相连 git branch --set-upsteam-to origin/新分支名

猜你喜欢

转载自www.cnblogs.com/huting-front/p/12106578.html