GitClone报错:GnuTLS recv error (-110): The TLS connection was non-properly terminated.解决方法

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
————————————————

原文链接:https://blog.csdn.net/joey_ada/article/details/123580592

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值