刪除遠(yuǎn)程分支失敗,該怎么刪除遠(yuǎn)程分支?
那不是寫著,遠(yuǎn)程服務(wù)器上沒有 "new" 這個(gè)分支么? 是不是已經(jīng)別別人刪了
刪除本地跟蹤
#Deleting a local remote-tracking branch:
git branch --delete --remotes <remote>/<branch>
git branch -dr <remote>/<branch> # Shorter
玩git推薦你讀兩個(gè)人的博客,一個(gè)廖雪峰廖雪峰git教程
第二個(gè)是阮一峰,阮一峰git教程
說明這個(gè)分支對(duì)應(yīng)的遠(yuǎn)程分支是 stale 狀態(tài),同步本地版本庫,命令:git remote update origin --prune
git remote update origin --prune
git pull -p
git pull -p
我一般用這個(gè)
但是本地得手動(dòng)刪除分支。