目录
1. GnuTLS recv error (-54): Error in the pull function.
2. gnutls_handshake() failed: The TLS connection was non-properly terminated.
1. GnuTLS recv error (-54): Error in the pull function.
今天如下命令同步某个工程代码:
git clone https://liuzhen007.com/test.git
遇到了下面的报错:
fatal: unable to access 'https://liuzhen007.com/test.git/': GnuTLS recv error (-54): Error in the pull function.
可以不使用https协议,使用git自己的协议同步代码,解决方法如下:
git clone git://liuzhen007.com/test.git
2. gnutls_handshake() failed: The TLS connection was non-properly terminated.
报错截图如下:
大多数情况下,是没有访问国外网站导致的。可以考虑设置代理,具体命令如下,使用 4500 端口为例:
git config --global http.https://github.com.proxy http://127.0.0.1:4500 git config --global https.https://github.com.proxy https://127.0.0.1:4500
另外,取消代理命令也是有必要说一下的:
git config --global --unset http.proxy git config --global --unset https.proxy
作者简介: