使用git clone命令克隆文件出現error: RPC failed; curl 18 transfer closed with outstanding read data remaining問題


在使用git clone命令從github克隆源碼到電腦時出現了以下問題

fatal: The remote end hung up unexpectedly
 
fatal: early EOF
 
fatal: index-pack failed

error: RPC failed; curl 18 transfer closed with outstanding read data remaining
 

原因是因為curl的postBuffer的默認值太小,我們需要調整它的大小,在終端重新配置大小

   在這里,我把postBuffer的值配置成500M,對筆者來說已經夠了。可以根據你需要下載的文件大小,將postBuffer值配置成合適的大小。

   git config --global http.postBuffer 524288000

   這樣已經配置好了,如果你不確定,可以根據以下命令查看postBuffer。

   git config --list

 


免責聲明!

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



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