git 从github上clone时遇到的问题

发布时间 2023-08-24 13:18:37作者: unicornsir

1、Git clone 出现  fatal: unable to access 'https://github.com/Serge45/GCodeViz.git/': OpenSSL SSL_

如图所示,当我想要github上面的文件clone到本地的时候出现了这样的错误。

 发生这样的错误是因为 Git 无法验证 GitHub 的 SSL 证书。这可能是由于本地的证书问题或网络问题

解决方案:

在 git clone 命令后面加上 -c 参数,并配置 Git 忽略 SSL 证书检查,如下所示:

 git -c http.sslVerify=false clone https://github.com/Serge45/GCodeViz.git