美文网首页
git 从 GitHub clone 至本地报错 "error

git 从 GitHub clone 至本地报错 "error

作者: 生信摆渡 | 来源:发表于2020-09-14 11:07 被阅读0次

    报错:

    Jay Chou@JayChou MINGW64 /usr (master)
    $ git clone https://github.com/JiahaoWongg/JiahaoWongg.github.io
    Cloning into 'JiahaoWongg.github.io'...
    fatal: unable to access 'https://github.com/JiahaoWongg/JiahaoWongg.github.io/': error setting certificate verify locations:
      CAfile: G:/Git/mingw64/ssl/certs/ca-bundle.crt
      CApath: none
    

    解决办法:

    Jay Chou@JayChou MINGW64 /usr (master)
    $ git config --system http.sslcainfo "G:/Git/mingw64/ssl/certs/ca-bundle.crt"
    
    Jay Chou@JayChou MINGW64 /usr (master)
    $ git config --system http.sslverify false
    

    再次克隆:

    Jay Chou@JayChou MINGW64 /usr (master)
    $ git clone https://github.com/JiahaoWongg/JiahaoWongg.github.io
    Cloning into 'JiahaoWongg.github.io'...
    remote: Enumerating objects: 90, done.
    remote: Counting objects: 100% (90/90), done.
    remote: Compressing objects: 100% (90/90), done.
    remote: Total 306 (delta 55), reused 0 (delta 0), pack-reused 216
    Receiving objects: 100% (306/306), 1.99 MiB | 605.00 KiB/s, done.
    Resolving deltas: 100% (169/169), done.
    
    Jay Chou@JayChou MINGW64 /usr (master)
    

    相关文章

      网友评论

          本文标题:git 从 GitHub clone 至本地报错 "error

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