美文网首页
Git gnutls_handshake() failed

Git gnutls_handshake() failed

作者: _compass | 来源:发表于2021-08-10 15:38 被阅读0次

    今天在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, 完成.
    

    相关文章

      网友评论

          本文标题:Git gnutls_handshake() failed

          本文链接:https://www.haomeiwen.com/subject/dzzxbltx.html