克隆git仓库时提示:Cloning into 'bisheng'... fatal: unable to access 'https://github.com

63 阅读1分钟

克隆git仓库时提示:Cloning into 'bisheng'... fatal: unable to access 'github.com/dataelement…': SSL certificate problem: unable to get local issuer certificate

这个错误是因为 Git 无法验证 GitHub 的 SSL 证书,通常发生在 Windows 系统或某些企业网络环境下。以下是解决方法:

1、临时解决(不建议长期使用):

git clone -c http.sslVerify=false https://github.com/dataelement/bisheng.git

2、配置证书 更新 Git 的根证书:

git config --global http.sslBackend "schannel"  # Windows 使用系统证书

手动指定保存地址:

git config --global http.sslCAInfo "C:/path/to/cacert.pem"