2013-05-08 53 views
0

我一直在努力使用Github for mac,它基本上搞砸了我的整個應用程序。我現在能夠恢復到某個特定點,將所有東西都合併到主設備等中。GitHub For Mac不想刪除分支,但在控制檯上我可以?

接下來我做了什麼是刪除所有舊分支,但它不允許一個分支。

在控制檯上,我很容易刪除它,但不是在Github for Mac應用程序中。無論如何,我正在考慮刪除mac應用程序的github。

也出於某種原因,我的更改,提交和更新不通過控制檯和Github for mac應用程序推送到Github。

有關的職位分支的錯誤:

2013-05-08 10:44:50.317 GitHub for Mac Login[1274:707] AskPass with arguments: (
"/Applications/GitHub.app/Contents/MacOS/GitHub for Mac Login", 
"Username for 'https://github.com': ") 
2013-05-08 10:44:50.373 GitHub for Mac Login[1275:707] AskPass with arguments: (
"/Applications/GitHub.app/Contents/MacOS/GitHub for Mac Login", 
"Password for 'https://[email protected]': ") 
remote: error: refusing to delete the current branch: refs/heads/posts   
To https://github.com/ewalkerblog/alift.git 
! [remote rejected] posts (deletion of the current branch prohibited) 
error: failed to push some refs to 'https://github.com/ewalkerblog/alift.git' 
(1) 

任何幫助嗎? Github for mac仍然是越野車?

+0

如果您發佈該分支的名稱,確切的錯誤消息和(如果有的話)錯誤日誌 – 2013-05-08 06:19:40

+0

我在工作,試圖找出問題,白天可以在晚上編碼。將嘗試在幾個小時內添加這些內容。 – 2013-05-08 06:22:34

+0

我添加了它的帖子分支。還添加了錯誤。 – 2013-05-08 08:48:11

回答

1

日誌中的錯誤消息是(誰看到它第一次雖然不是有人清透)很明確:

! [remote rejected] posts (deletion of the current branch prohibited) 

由於遠程(一GitHub庫)是一個裸露的回購協議,它具有沒有「當前」分支本身,因爲它沒有工作副本。通過「當前分支」Git意味着您的Github回購默認分支您不能刪除

要修復此問題,請在回購設置中更改回購商的默認分支(「設置」選項卡位於回購頁面的右上角)。之後,你可以像所有其他分支一樣刪除它。

相關問題