git錯誤提示error: RPC failed; curl 18 transfer closed with outstanding read data remaining


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM