Git: fatal: The remote end hung up unexpectedly

嗯嗯,今天很衰了。linux

忽然发现前几天彻底是乱搞,今天文哥说我git用的不对,因而从新,git。git

而后通过千万次的尝试,依旧无疾而终。罪魁祸首即是curl

error: RPC failed; result=18, HTTP code = 200 KiB/s       
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)1.62 MiB | 4.00 KiB/s   
fatal: index-pack failedpost

分析缘由以下:url

1. 网速过慢.net

2. 文件过大code

个人状况应该属于,后者。blog

虽然80%依旧很慢,但终于成功了。【哭】rem

解决方案:it

git config --global http.postBuffer 524288000
# some comments below report having to double the value:
git config --global http.postBuffer 1048576000

参考:http://blog.csdn.net/oshuangyue12/article/details/78882151

---------------------------------------------------------------------------------------------------------------

更改于1小时后,

虽然,linux下很幸运clone下来,可是win10下依旧发生了错误:

error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

继续百度之,获得另外一个方案,在c:\\programdata\git\找到config文件,修改core中,添加compression=-1

查到此参数设置压缩的,故猜测,可能仍是文件太大,虽然还不是很清楚【继续哭】

参考:

http://blog.csdn.net/u012635819/article/details/50906711

http://blog.csdn.net/realdonaldtrump/article/details/78925691

相关文章
相关标签/搜索