我一直在为使用mac版的Github而苦苦挣扎,它基本上搞砸了我的整个应用。现在,我可以恢复到某个点,将所有内容合并到master中,等等。
我下一步做的是删除所有旧的分支,但有一个分支是不允许的。
在控制台上,我可以很容易地删除它,但在mac的Github应用程序上就不行了。我正在考虑在任何情况下现在删除github for mac应用程序。
另外,出于某些原因,我的更改、提交和更新都无法通过控制台和mac版Github应用程序推送到Github。
posts分支的错误:
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://ewalkerblog@github.com': ")
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)有什么需要帮忙的吗?mac版的Github还会出问题吗?
发布于 2013-05-08 16:55:25
日志中的错误消息非常明确(尽管对于第一次看到它的人来说不是很清楚):
! [remote rejected] posts (deletion of the current branch prohibited)由于远程( Github存储库)是一个空的存储库,它本身没有“当前”分支,因为它没有工作副本。“当前分支”指的是你的Github存储库的默认分支,,你不能删除。
要解决此问题,请在repo设置中更改repo的默认分支( " settings“选项卡位于repo页面的右上角)。在此之后,您可以像删除所有其他分支一样删除它。
https://stackoverflow.com/questions/16433900
复制相似问题