在pod install 时报错
[!] Error installing NBULog
[!] /usr/bin/git clone https://github.com/CyberAgent/NBULog.git /var/folders/0j/9z2zd87j07bg4h4m125nl5pc0000gn/T/d20190712-36426-1lm0btx --template= --single-branch --depth 1 --branch 2.0.0
Cloning into '/var/folders/0j/9z2zd87j07bg4h4m125nl5pc0000gn/T/d20190712-36426-1lm0btx'...
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
其原因是因为curl的postBuffer的默认值太小,我们需要调整它的大小,在终端重新配置大小.
可以根据你需要下载的文件大小,将postBuffer值配置成合适的大小。
git config --global http.postBuffer 524288000
这样已经配置好了,如果你不确定,可以根据以下命令查看postBuffer。
git config --list
参考
使用git clone命令克隆文件出现error: RPC failed; curl 18 transfer closed with outstanding read data remain问题