嗯嗯,今天很衰了。
突然发现前几天完全是乱搞,今天文哥说我git用的不对,于是重新,git。
然后经过千万次的尝试,依旧无疾而终。罪魁祸首便是
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 failed
分析原因如下:
1. 网速过慢
2. 文件过大
我的情况应该属于,后者。
虽然80%依旧很慢,但终于成功了。【哭】
解决方案:
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:\programdatagit找到config文件,修改core中,添加compression=-1
查到此参数设置压缩的,故猜想,可能还是文件太大,虽然还不是很清楚【继续哭】
参考:
http://blog.csdn.net/u012635819/article/details/50906711
http://blog.csdn.net/realdonaldtrump/article/details/78925691