在使用git clone命令从github克隆源码到电脑时出现了以下问题
remote: Enumerating objects: 1039, done.
remote: Counting objects: 100% (1039/1039), done.
remote: Compressing objects: 100% (446/446), done.
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
原因是curl的postBuffer的默认值较小,需要在终端调整为到合适的大小,这里调整到500M
git config --global http.postBuffer 524288000
这样已经配置好了,如果你不确定,可以根据以下命令查看postBuffer。
git config --list
END