首页 > 解决方案 > 为什么我在克隆 git 存储库时收到 open ssl 错误?

问题描述

在克隆远程存储库时,

git -c http.sslVerify=false clone <<url>>

我收到以下错误,

remote: counting objects 3122, done 
remote: compressing objects: 100%(1125/1125)
error: RPC failed; curl 56 openssl ssl_read: error:14095126:ssl routines ssl13_read_n:unexpected eof while reading errorno 0
fatal: early eof
fatal: the remote hung up unexpectedly
fatal: index pack failed

我已经试过了

git config --global http.postBuffer 1048576000

我究竟做错了什么?

标签: gitgithubbitbucket

解决方案


看这里:https ://flyingtomoon.com/2011/04/12/git-push-is-failed-due-to-rpc-failure-result56/

问题很可能是因为您的 git 缓冲区太低。

您需要通过将 git config var “http.postBuffer” 设置为 524288000 来增加 Git 的 HTTP 缓冲区。

git config http.postBuffer 524288000

推荐阅读