git https请求 提示error setting certificate verify locations

git https请求 提示error setting certificate verify locations

git.exe pull -v --progress "https://git.oschina.net/g/esteelds-tag.git" master

fatal: unable to access 'https://git.oschina.net/g/esteelds-tag.git/': error setting certificate verify locations:

CAfile: C:/Program Files/Git/mingw64/libexec/ssl/certs/ca-bundle.crt

CApath: none

解决方法

先打开git bash窗口 

执行命令:

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

1

1

(注意修改为正确的文件路径)或

git config --system http.sslverify false

1

1

我使用git config --system http.sslverify false命令解决问题。

参考:

http://blog.csdn.net/sdhongjun/article/details/52144253

猜你喜欢

转载自yuhuiblog6338999322098842.iteye.com/blog/2351469