git clone 远程仓库报错error setting certificate verify locations

系统:windows10

今天从github上克隆项目时报错:

原因:

1.git配置没有修改

之前配置的是公司gitlab账号的信息,和我当前要克隆的github的配置信息不同,没有注意修改

2.执行以下命令:

git config --system http.sslverify false

 修改后即可成功克隆

参考地址:http://stackoverflow.com/questions/3778042/github-error-cloning-my-private-repository

该处提供两种方案,

  1.

git config --system http.sslcainfo "C:Program Files (x86)gitincurl-ca-bundle.crt"

  2.

git config --system http.sslverify false

  均会修改git的配置文件: [git-install-dir]/etc/gitconfig file

由于直接测试第二种就解决问题了,所以没有验证第一种方法是否有效

原文地址:https://www.cnblogs.com/zqunor/p/6384413.html