【问题标题】:Why do i get open ssl error while cloning git repository?为什么我在克隆 git 存储库时收到 open ssl 错误?
【发布时间】:2020-08-07 09:18:53
【问题描述】:

在克隆远程存储库时,

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

我做错了什么?

【问题讨论】:

  • 这是某种网络问题或服务器连接断开。寻找防病毒、防火墙和代理问题,以及不可靠的网络。 http.postBuffer 对克隆没有影响,所以你应该取消它。
  • 如果它从服务器断开连接,我没有办法克隆它吗?
  • 您可以尝试使用-b 克隆一个分支,然后逐步获取其余分支。但是,如果网络连接太不稳定,那么你就不走运了。

标签: git github bitbucket


【解决方案1】:

看这里: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

【讨论】:

  • 此选项仅在您的 HTTP/1.1 实现不正确支持分块传输编码时才有效,并且仅应在服务器或代理损坏时使用。见the documentation
猜你喜欢
  • 2013-10-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-02-01
  • 1970-01-01
  • 1970-01-01
  • 2014-06-06
  • 2012-04-13
相关资源
最近更新 更多