添加本地存储库 Github 桌面整个用户文件

Adding Local repository Github Desktop whole User file

我正在尝试使用 github 桌面应用程序添加本地存储库。但是当我链接文件夹时,它一直尝试添加我的用户文件夹,从而使其超出字节限制并且我无法添加任何内容,因为我不断收到此错误: "The output from the command could not fit into the allocated stdout buffer. Set options.maxBuffer to a larger value than 10485760 bytes"

我检查了存储库设置,我的主要远程存储库是“(fetch)”。添加一个新的存储库,然后 copy/pasting 将代码添加到新的存储库中工作正常,但我想知道为什么添加我现有的本地存储库不起作用。

这是一个老问题:https://github.com/desktop/desktop/issues/969

解决方案:

  • 卸载当前 GitHub 桌面版本。

  • 然后,更新您的 GitHub 桌面版。

我想我真的找到了问题的答案。我使用的是 Github 桌面测试版。我仍然不确定为什么问题首先会发生,但为了解决这个问题,我只是确保在网页底部的 https://desktop.github.com/ 下载非测试版,而不是顶部的那个。

我有同样的问题,卸载和更新 GitHub 没有工作。

这就是我的解决方案:

  • 打开gitbash
  • 创建您的 Git 存储库 cd c:\path\to\yout\project && git init . && git add (see this link)
  • 比 'Add axisting repository' 在 GitHub 桌面上应该工作