1、问题描述
git黑窗口报错“error setting certificate verify locations”,意思就是证书位置设置错误。
fatal: unable to access 'https://github.com/goSilver/daydayup.git/': error setting certificate verify locations:
CAfile: D:/dev/Git/mingw64/ssl/certs/ca-bundle.crt
CApath: none
2、问题分析
git的配置文件里的路径和实际的路径不一致了,故报错证书位置设置错误。
3、解决方法
- 重新设置git配置文件路径:(推荐)
git config --system http.sslcainfo "D:\_dev\Git\mingw64\ssl\certs\ca-bundle.crt"
- 关闭证书校验:
git config --system http.sslverify false