我使用Visual Studio Team Services和Git来存储我的源代码。
我的游戏包含大文件。 我将游戏代码保存在Visual Studio Team Services中,并没有出现错误。但最近,我添加了更多的大文件,问题开始出现。
当我运行git push时,会收到以下错误:
F:\Games\BarbarianSouls_v2>git push
Counting objects: 19464, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (19457/19457), done.
fatal: protocol error: bad line length 8192iB | 3.24 MiB/s
fatal: sha1 file '<stdout>' write error: Broken pipe
error: failed to push some refs to 'https://gitlab.com/fabiobh/barbarian_souls.git'
这个项目的大小超过了10GB,我不确定这是否会影响存储库。根据微软的说法,VSTS存储库没有大小限制。
我尝试使用以下代码:
git config --global http.postBuffer 524288000
但是它不起作用了,上传停止时显示492mb,然后我尝试使用以下代码:
git config --global http.postBuffer 7242880000
但是我遇到了第一个错误:
fatal: protocol error: bad line length 8192iB
我该如何摆脱这个错误?
“致命错误:协议错误:行长度8192不正确”。
我在推送一个包含大量二进制文件的大型代码库时也遇到了这个问题。目前还没有找到解决方案。 - MarkR