git报错:git SSL certificate problem: unable to get local issuer certificate


问题描述

在github上下载代码包时,出现git SSL certificate problem: unable to get local issuer certificate的错误。


原因分析:

Git 使用 cURL 进行 HTTPS 通信,而 cURL 默认配置是不信任任何证书颁发机构(CA)的。这意味着,除非你明确告诉 cURL 信任特定的 CA,否则它会拒绝所有 SSL 连接。


解决方案:

只需要在命令行输入一下命令即可解决:

bash 复制代码
git config --global http.sslVerify false
相关推荐
大千AI助手1 小时前
GitHub Copilot:AI编程助手的架构演进与真实世界影响
人工智能·深度学习·大模型·github·copilot·ai编程·codex
xuanerya2 小时前
使用 SSH 方式克隆 GitHub 仓库没有权限解决办法
运维·ssh·github
.Shu.3 小时前
计算机网络 HTTPS 全流程
网络协议·计算机网络·https
还听珊瑚海吗6 小时前
基于WebSocket和SpringBoot聊天项目ChatterBox测试报告
spring boot·websocket·网络协议
希尔伯特旅馆7 小时前
Tushare:量化投资数据获取
github
码农小白-RMS7 小时前
cursor-执行git指令(vscode同理)
git
爱喝矿泉水的猛男9 小时前
Git Commit 提交信息标准格式
git·commit
℘团子এ9 小时前
git中,将新项目推送到新建的远程仓库
git
gitboyzcf9 小时前
Git 常用命令
前端·git·后端
猿究院--冯磊10 小时前
计算机网络--HTTP协议
网络协议·计算机网络·http