git error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function

git error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function

我试过了git submodule update --init --recursive

并出现以下错误

error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function. fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed

我的 OS 是 window 10,我使用 docker 作为 windows。 Docker 图片是 ubuntu:16.04

您似乎缺少 openssl 包,因为另一种可能是网络问题。

这不是完全相同的错误代码,但对 的一个回应建议在 git 全局配置设置中设置较大的缓冲区大小;

  git config --global http.postBuffer 524288000  
  git config --global https.postBuffer 524288000

这对我来说很有用,克服了与您类似的错误,试图从 GitHub;

克隆 cppcheck 存储库
enter code here`remote: Counting objects: 100% (325/325), done.
remote: Compressing objects: 100% (159/159), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed