在使用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
Logo

一站式 AI 云服务平台

更多推荐