克隆GitHub Repo错误:错误设置证书验证位置

时间:2018-08-11 01:41:40

标签: git github pem

我是一个新的git用户,正在尝试遵循Lynda.com教程。我发出了本教程的确切命令。我正在使用Windows 10,git版本1.9.4.msysgit.2。我已经从GitHub复制了以下网址(来自所需的Github Repo),并发出了以下命令,并收到以下错误。

owner@LAPTOP-0FP78GPS /c/users/owner/Documents (master)
$ git clone https://github.com/kevinskoglund/explore_california.git lynda_version
Cloning into 'lynda_version'...
fatal: unable to access 'https://github.com/kevinskoglund/explore_california.git/': error setting certificate verify locations:
  CAfile: C:\Program Files\Git\mingw64\ssl\cert.pem
  CApath: C:/RailsInstaller/Git/path/to/cacerts

1 个答案:

答案 0 :(得分:0)

您必须找到证书文件路径:

D:\Program Files\Git\mingw64\ssl\certs\ca-bundle.crt

配置Git路径:

git config --system http.sslcainfo "D:\Program Files\Git\mingw64\ssl\certs\ca-bundle.crt"

或完全关闭SSL检查:

git config --system http.sslverify false