git https请求 提示error setting certificate verify locations

来源:互联网 发布:feel软件 编辑:程序博客网 时间:2024/05/20 09:27

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

 

1 0
原创粉丝点击