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
原因說明:
我們的項目由於時代久遠,所以導致整個項目比較復雜龐大。出現這種錯誤,就是因為curl的postBuffer默認值太小的原因,重新在終端配置一下這個值就可以了。
解決方法:
git config –-global http.postBuffer 524288000
524288000代表B,524288000B也就是500MB。這個值得大小,可以根據項目酌情設置。
也可以用如下命令查看是否配置成功:
git config –list