2013-03-08 29 views
2

我犯了一個錯誤推送標籤名稱v2.3,我已經有了分支名稱v2.3。 當我嘗試刪除分支V2.3:如何刪除一個與標籤相同的git遠程分支?

git push origin :v2.3 

它說,

qty:ibt-common qrtt1$ git push origin :v2.3 :v2.3_working 
error: dst refspec v2.3 matches more than one. 
error: failed to push some refs to '[email protected]:mygit/common.git' 

是否有可能命名衝突時,以去除分支?

回答

4

你可以消除歧義像這樣的Refspec:

git push origin :refs/heads/branchname 

更多信息in this question

+0

它的工作原理!非常感謝你。 – qrtt1 2013-03-08 03:10:39