git push出现fatal: unable to access ‘’: SSL certificate problem: unable to get local issuer certificate 错误
问题
在用git push 提交项目代码到 github 的时候,遇到了如下报错:
fatal: unable to access ‘https://github.com/…git/’: Could not resolve host: github.com
意思是:
致命:无法访问’https://github.com/GQ-programmer/sims-layui.git/':SSL证书问题:无法获取本地颁发者证书
解决办法
- 解除SSL验证: git config --global http.sslVerify false
- 再次 git push 即可