今天pod install 项目有一个第三方库一直超时,终端显示错误信息为:curl 18 transfer closed with outstanding read data remaining,网上说是缓存区溢出,于是修改.gifconfig文件的 http.postBuffer
在终端执行并查看:
git config --global http.postBuffer 5242880
git config --list
然后并没有解决,于是我就打开了.gitconfig文件,手动改ssh的缓存区postBuffer
查看文件
ls -a
执行这个命令,可以看到当前目录下所有的文件,包括.gitconfig,然后执行
open .gitconfig
改成5M,大概像下面这样
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[http]
postBuffer = 5242880
[ssh]
postBuffer = 5242880
然后我再pod install 一次,居然可以了。