我想刪除我的項目存儲庫的一些遠程分支。我已經運行的下一個命令:刪除Git中的遠程分支
git push origin :name_of_branch
,當我列出遠程分支機構與
git branch -r
,我已經刪除,不能出現分支,但我的一個夥伴運行
git fetch
後來
git branch -r
和在列表中,我已刪除的分支name_of_branch
仍在列表中。然而,當他試圖刪除與
git push origin :name_of_branch
他收到一條消息分支:
error: unable to delete 'name_of_branch': remote ref does not exist
error: failed to push some refs to 'the_name_of_the_repository'
我怎麼會完全刪除列表中的分支?
Duplicate [刪除本地和遠程Git分支?](http://stackoverflow.com/q/2003505/456814)。 – 2014-06-06 03:22:01