执行pod update 报错error: RPC failed; curl 18 transfer closed with outstanding read data remainin

执行pod update 或pod repo update 都会失败提示:

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

 

解决方法:

修改postBuffer的默认值

git config --global http.postBuffer 524288000

确认修改

git config --list

执行pod update 报错error: RPC failed; curl 18 transfer closed with outstanding read data remainin