嗯嗯,今天很衰了。
突然發現前幾天完全是亂搞,今天文哥說我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:\\programdata\git\找到config文件,修改core中,添加compression=-1
查到此參數設置壓縮的,故猜想,可能還是文件太大,雖然還不是很清楚【繼續哭】
參考:
http://blog.csdn.net/u012635819/article/details/50906711
http://blog.csdn.net/realdonaldtrump/article/details/78925691