【error】git clone: SSL certificate problem: unable to get local issuer certificate

报错:

$ git clone https://github.XXX.git
Cloning into 'XXX'...
fatal: unable to access 'https://github.XXX.git/': SSL certificate problem: unable to get local issuer certificate


这里其实是电脑没有安装对应的ca证书,所以无法通过https连接到git服务器。

这里通过设置git的ssl验证跳过了这个错误(win下):

git config --global http.sslVerify false

之后再进行 git clone即可。

 

参考:https://my.oschina.net/jiec/blog/495883?p=1


posted @ 2016-09-30 15:22  Web前端架构  阅读(564)  评论(0编辑  收藏  举报