報錯:
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