github代码拉取和上传出现“failed: The TLS connection was non-properly terminated”错误解决方案

在使用VS Code上传代码到github时出现下面的错误:

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

尝试了网上几种方案都不成功,下面是我试成功的一种:

仅为github设置代理如下:

git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
#取消代理
git config --global --unset http.https://github.com.proxy

猜你喜欢

转载自blog.csdn.net/qianbin3200896/article/details/127511105