blog icon indicating copy to clipboard operation
blog copied to clipboard

拉取github仓库报错“gnutls_handshake() failed”问题

Open diamont1001 opened this issue 3 years ago • 0 comments

在拉取 GitHub 仓库代码的时候卡住一会并出现错误:

fatal: unable to access 'https://github.com/xxx/xxx.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.

解决办法

取消代理(经测试,需要每次都要运行以下代码,并不能一劳永逸)

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

然后再进行 git pull 等操作。

diamont1001 avatar Feb 04 '22 19:02 diamont1001