git clone 提示 unable to get local issuer certificate
从git使用命令git clone 克隆github项目到本地时,可能会遇到下面这个错误:
SSL certificate problem: unable to get local issuer certificate
这是因为https访问远程仓库时,本地没有配置https信任的服务器,验证失败,git就会报错。
解决办法
通过下面的命令将git中的sslverify关掉:
git config --global http.sslverify false
这样就可以clone了,如果刚配置完立即clone还报错,等下重试