【Git】Git clone报错"fatal: unable to access XXX:error setting certificate verify locations: CAfile:XXX"
一、问题描述
使用Git clone
从GitHub上获取项目的时候报以下错误:
Cloning into 'TrojanNet'...
fatal: unable to access 'https://github.com/trx14/TrojanNet.git/': error setting certificate verify locations: CAfile: D:/Development/Git/mingw64/ssl/certs/ca-bundle.crt CApath: none
二、解决方案
这个错误是证书验证的时候出问题的,执行以下命令关闭SSL证书的验证:
git config --global http.sslVerify false
再重新git clone
就没问题了