git clone 远程项目失败
报错如下
remote: Counting objects: 5148, done.
remote: Compressing objects: 100% (16/16), done.
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限制了推送数据的大小导致的错误。
解决方案: 命令行执行
git config --global http.postBuffer 20000000