当前位置:   article > 正文

gitHub 中 git clone 报错 SSL certificate problem: unable to get local issuer certificate_github ssl certificate problem: unable to get loca

github ssl certificate problem: unable to get local issuer certificate

在 github 中 复制的链接 git clone 报以下错误

Cloning into 'vue'...
fatal: unable to access 'https://github.com/ygs-code/vue.git/': SSL certificate problem: unable to get local issuer certificate
  • 1
  • 2

这是由于当你通过HTTPS访问Git远程仓库的时候,是本地没有配置https信任的服务器,导致验真不通过,或者说如果服务器上的SSL证书未经过第三方机构认证,git就会报错。原因是因为未知的没有签署过的证书意味着可能存在很大的风险。解决办法就是通过下面的命令将git中的sslverify关掉:

git config --global http.sslverify false
  • 1

运行上面代码 再重新git clone xxx就行了
看完记得给我点赞 下课

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号