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

2022/1/20 11:14:10

本文主要是介绍踩坑 gnutls_handshake() failed: The TLS connection was non-properly terminated.,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

git clone 时遇到 gnutls_handshake() failed: The TLS connection was non-properly terminated.
原因:代理设置出错

解决方案:重置代理

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

若需使用代理,http协议和socket协议的配置分别如下,以8080端口为例:

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

socket

git config --global http.proxy ‘socks5://127.0.0.1:8080’
git config --global https.proxy ‘socks5://127.0.0.1:8080’



这篇关于踩坑 gnutls_handshake() failed: The TLS connection was non-properly terminated.的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程