github克隆代码一直报错

GnuTLS recv error (-110): The TLS connection was non-properly terminated.

gnutls_handshake() failed: The TLS connection was non-properly terminated.

按照搜索到的方法都无法恢复,error-110解决操作步骤如下:

1.查看代理设置,取消所有代理:
$ git config --global https.proxy
socks5://127.0.0.1:8080
$ git config --global --unset https.proxy
$ git config --global https.proxy

代理取消后git clone还是报错

  1. 设置git clone depth = 1

$ git clone https://github.com/xxx.git --depth=1

还是失败

  1. 执行如下指令后git clone成功
    $ export GIT_TRACE_PACKET=1
    $ export GIT_TRACE=1
    $ export GIT_CURL_VERBOSE=1

$ git clone https://github.com/xxx.git
————————————————