我有2個遠程分支機構:如何強制刪除GitHub中的遠程分支?
- pending-issues-in-project
- new-issues-in-project
我試圖刪除pending-issues-in-project
這樣的:
git push origin :pending-issues-in-project
,但我得到了錯誤:
error: unable to push to unqualified destination: pending-issues-in-project
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to '[email protected]:forkedRepo/RepoName.git'
,所以我想可能是我已經刪除了pending-issues-in-project
分支,但是當我運行
git branch -a
它顯示pending-issues-in-project
分支在列表中。
當我嘗試相同(嘗試刪除)new-issues-in-project
,它的工作。
我已經使用git branch -D branchName
從本地服務器中刪除了兩個分支。
如果錯誤發生是因爲分支不在存儲庫中,那麼 爲什麼它進入遠程分支列表?
和
有沒有辦法強制刪除遠程分支?
謝謝你的時間。
'git branch -r'給你什麼? – 2012-01-06 06:28:37
其給出的分支列表也具有起源/待定問題在項目中,我試圖刪除。 – 2012-01-06 06:34:39