错误日志:
Clone failed
RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
663 bytes of body are still expected
the remote end hung up unexpectedly
early EOF
index-pack failed
原因:出现这种问题可能是文件太大了
curl的postBuffer的默认值较小,需要在终端调整为到合适的大小,这里调整到500M
解决方法:
命令行输入输入以下3个命令:
git init
git config http.postBuffer 524288000
git config http.sslVerify "false"
问题解决
博客记录了Git克隆失败的错误日志,如‘Clone failed’‘RPC failed’等。分析原因是文件太大,curl的postBuffer默认值较小。解决方法是在命令行输入3个命令,将postBuffer调整到合适大小(如500M)来解决问题。
3万+

被折叠的 条评论
为什么被折叠?



