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
相关推荐
zzqssliu3 小时前
煤炉自动代拍系统的队列设计与超时控制机制
git·github
一支绝命钩3 小时前
FPGA工程Git常用操作手册
git
fthux5 小时前
“装闭”,让装修套路“装”不下去
人工智能·ai·开源·github·open source
不搞学术柒柒7 小时前
Git新功能完整开发提交流程
git
用户84913717547168 小时前
想做护眼工具却脑子一片空白?我用 OpenSpec 把模糊想法聊成了 v0.1
github·vibecoding
wangruofeng9 小时前
git-filter-repo 把 .git 从 112MB 砍到 1.4MB,但漏推 tag 让 clone 又胖回来
github·devops
峰向AI9 小时前
Block 放出大招!Buzz:一个中继统一代码、聊天、CI 全流程
github
dong_junshuai10 小时前
每天一个开源项目#47 4.4K Stars 的 LikeC4:让架构图随代码进化
github
午安~婉11 小时前
Git中SSH连接
前端·git·gitee
888CC++12 小时前
VS Code Git 工作树:解锁多分支并行开发新体验
git