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


報錯:

1 error: RPC failed; curl 18 transfer closed with outstanding read data remaining 2 fatal: The remote end hung up unexpectedly 3 fatal: 過早的文件結束符(EOF) 4 fatal: index-pack 失敗

處理:

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

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

   git config --global http.postBuffer 524288000

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

   git config --list

參考鏈接:https://blog.csdn.net/dzhongjie/article/details/81152983


免責聲明!

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



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