在使用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