Git gnutls_handshake() failed
2021-08-10 本文已影响0人
_compass
今天在linux获取git代码,出错,比如:
git clone https://github.com/probonopd/linuxdeployqt.git --depth=1
错误如下:
git clone https://github.com/probonopd/linuxdeployqt.git --depth=1
正克隆到 'linuxdeployqt'...
fatal: 无法访问 'https://github.com/probonopd/linuxdeployqt.git/':gnutls_handshake() failed: Error in the pull function.
将其中https换成http即可:
git clone http://github.com/probonopd/linuxdeployqt.git --depth=1
以下正确输出:
git clone http://github.com/probonopd/linuxdeployqt.git --depth=1
正克隆到 'linuxdeployqt'...
warning: 重定向到 https://github.com/probonopd/linuxdeployqt.git/
remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 55 (delta 4), reused 33 (delta 2), pack-reused 0
展开对象中: 100% (55/55), 92.40 KiB | 28.00 KiB/s, 完成.