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

解决方案:git config --global http.postBuffer 524288000
原因:究其原因是因为curl的postBuffer的默认值太小,我们需要调整它的大小,在终端重新配置大小

在这里,笔者把postBuffer的值配置成500M,对笔者来说已经够了。可以根据你需要下载的文件大小,将postBuffer值配置成合适的大小。

你可能感兴趣的:(git,javascript)