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

posted @ 2018-12-13 15:36  jiu~  阅读(1192)  评论(0编辑  收藏  举报