github - 无法使用 Github Windows 提交,未给出原因

标签 github github-for-windows

我被迫使用其他应用程序,并且自 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/

相关文章:

git - 适用于 Windows 的 GitHub 桌面客户端能否与非 GitHub ssh 访问远程设备一起使用?

github - 如何为我的项目设置 github 存储库

github - Azure DevOps管道找不到管道YAML文件

github 操作 : how to check if current push has new tag (is new release)?

Github Desktop - 不显示更改

github-for-windows - Windows shell 的 Github 中的颜色代表什么意思?

c# - Github OAuth : The remote server returned an error (403) Forbidden

r - 从 GitHub 更新所有包

gitlab - 带有 Gitlab 社区版的 Windows 版 Github

jenkins - 无法连接到存储库 : Command "git ls-remote -h