git clone 报错
error message:
fatal: unable to access 'https://github.com/xxx.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
问题:代理设置有错,为 http 错误配置了 https 的代理,导致出错。
解决方法:
如果没有配置代理,用以下命令取消代理:
git config --global --unset https.https://github.com.proxy
git config --global --unset http.https://github.com.proxy
如果需要使用代理 ,使用 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.