fatal: unable to access 'https://github.com/yyyist/yyy.git/': SSL certificate problem: unable to get local issuer certificate
时间: 2024-05-10 19:10:13 浏览: 187
这个错误通常是由于 Git 无法验证 SSL 证书导致的。您可以尝试以下解决方法:
1. 确认您的网络连接正常,尝试使用其他网络连接。
2. 确认您的 Git 版本是否过时,如果是,请升级到最新版本。
3. 禁用 SSL 验证,可以使用以下命令:
```
git config --global http.sslVerify false
```
但是这种方法不太安全,因为它会禁用所有 SSL 验证。
4. 手动添加 SSL 证书,可以使用以下命令:
```
git config --global http.sslCAInfo /path/to/certificate.crt
```
其中 `/path/to/certificate.crt` 是您的 SSL 证书路径。
相关问题
fatal: unable to access 'https://github.com/GlasierKawa/DrinkTalk.git/': SSL certificate problem: unable to get local issuer certificate
以下是解决SSL证书问题的两种方法:
1. 通过配置git来解决SSL证书问题
```shell
git config --global http.sslverify false
```
2. 通过克隆时指定SSL证书验证为false来解决
```shell
git clone https://github.com/HalfStackDeveloper/FloatBall.git -b master
```
fatal: unable to access 'https://github.com/xuexuejishu/smellycat.git/': SSL certificate problem: unable to get local issuer certificate
这个错误是由于无法获取本地颁发机构证书导致的。解决这个问题的方法是通过设置git的配置来忽略SSL证书验证。你可以按照以下步骤进行操作:
1. 打开终端或命令提示符窗口。
2. 输入以下命令来设置git的配置:
```shell
git config --global http.sslVerify false
```
3. 然后再次尝试执行git clone命令:
```shell
git clone https://github.com/xuexuejishu/smellycat.git/
```
这样就可以忽略SSL证书验证,成功克隆GitHub仓库。
阅读全文
相关推荐
















