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便成功了。
文章讲述了在遇到gnutls_handshake()失败的问题时,如何通过设置并重置Git的http代理配置(如127.0.0.1:8080),解决Connectionrefused错误,最终成功gitclone的过程。

1万+

被折叠的 条评论
为什么被折叠?



