![cover](https://img-blog.csdnimg.cn/img_convert/4a1ab8c050264b68b823fdf04301d802.png)
拉取github报错 gnutls_handshake() failed: The TLS connection was non-properly terminated.
git clone的时候,报错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'
![Logo](https://devpress.csdnimg.cn/79de2bf0b7994defa4242ef90d5513fa.jpg)
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
所有评论(0)