git clone失败

错误内容:

error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.

原因探讨:出现此问题原因 http缓存不够或者网络不稳定等。

解决方案:

1、查看当前配置命令

  git config -l

2、httpBuffer加大    

git config --global http.postBuffer 524288000

3、压缩配置

git config --global core.compression -1    

4、修改配置文件

export GIT_TRACE_PACKET=1

export GIT_TRACE=1

export GIT_CURL_VERBOSE=1

原文地址:https://www.cnblogs.com/jiu0821/p/10114334.html