我被迫使用其他应用程序,并且自 Github for Windows 以来的命令行不允许我提交更改。我想了解问题所在,但我只是收到一 strip 有以下消息的提示:
Commit failed
Failed to create new commit
然后,它让我可以选择转到 Git Shell 或取消。虽然我不是终端专家,但当我选择转到 Git Shell(或任何其他应用程序)时,我可以进行提交。
我在 Windows 7 上使用 Github 2.0.5。
最佳答案
与 Windows 开发者的 Github 进行交流后,问题与 Windows 无法使用太长的路径有关。 Node.js 生成的 node_modules 文件夹 is the culprit of this issue in my particular case .
但是,我的存储库中的 node_modules 文件夹被 gitignored。即使 gitignored 时,它们也会在 Windows 版 Github 中产生问题,这一事实意味着开发人员必须解决这种情况。
我希望开发人员尽快做出回应或提供补丁。他们非常有帮助。与此同时,我使用 SourceTree 作为我的 Windows Git GUI。
关于github - 无法使用 Github Windows 提交,未给出原因,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24208362/