大約3個星期前,我從本地存儲庫中刪除了一些分支,但從未從GitHub上的存儲庫中刪除它們。我需要清理一些這些分支,但一直不成功。從GitHub刪除分支
舉個例子,我以前刪除這個分支從我的本地3周:1234e-proj
現在我試圖運行:
git push origin :1234e-proj
,我得到這個錯誤:
error: unable to push to unqualified destination: 1234e-proj
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
任何想法我做錯了什麼?這發生在我已經在本地刪除的幾個分支。
這裏是一些輸出: git push --delete origin'1234e-proj' remotes/origin/5370-event-模塊 遙控器/產地/ 5370-修訂 遙控器/產地/ 5370-路線 遙控器/ LV/5239h-ftaf 遙控器/ LV/5334-ftaf假期 遙控器/ LV/5334b-ftaf假期 我所用以1234e-proj爲例,但在嘗試從回購庫中刪除這些分支時出現同樣的錯誤。感謝您的幫助。 – mmalv