目录
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
作者简介:
原文地址:https://cloud.tencent.com/developer/article/1972335
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。