gnutls_handshake() failed: The TLS connection was non-properly terminated问题的解决。

首先使用http代理

# http
git config --global http.https://github.com.proxy http://127.0.0.1:8080
git config --global https.https://github.com.proxy https://127.0.0.1:8080

 这个时候再次git clone会出现Failed to connect to 127.0.0.1 port 8080: Connection refused问题

然后重置代理:

git config --global  --unset https.https://github.com.proxy 
git config --global  --unset http.https://github.com.proxy 

再次git clone便成功了。 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐