使用Git pull文件時,出現"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

出現以上錯誤有以下原因

1.緩存區溢出curl的postBuffer的默認值太小,需要增加緩存

使用git命令增大緩存(單位是b,524288000B也就500M左右)

git config --global http.postBuffer 524288000

使用git config --list查看是否生效

此時重新克隆即可

2.網絡下載速度緩慢

修改下載速度

git config --global http.lowSpeedLimit 0 git config --global http.lowSpeedTime 999999

3.以上兩種方式依舊無法clone下,嘗試以淺層clone,然后更新遠程庫到本地

git clone --depth=1 http://xxx.git
git fetch --unshallow

 


免責聲明!

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



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