Git使用无法拉取

错误提示:

error setting certificate verify locations: CAfile: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt CApath: none

问题原因:

这个问题是因为git配置里crt证书的路径不正确导致的

解决办法:

  • 这个路径配置是在C:\Program Files\Git\etc\gitconfig中,应该所有人的配置都在这里

    [diff "astextplain"]
    textconv = astextplain
    [http]
    sslBackend = openssl
    sslCAInfo = D:/Git/mingw64/ssl/certs/ca-bundle.crt # 原来默认写的就是 C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
    [core]
    autocrlf = true
    fscache = true
    symlinks = false
    [pull]
    rebase = false
    [credential]
    helper = manager-core
    [credential "https://dev.azure.com"]
    useHttpPath = true
    [init]
    defaultBranch = master

  • ca-bundle.crt 而该文件是在git的安装目录下的,比如我的git安装路径是在D:\Git\,所以我本机的crt文件就在D:/Git/mingw64/ssl/certs/ca-bundle.crt

相关推荐
Demons_kirit6 小时前
CTFHub 信息泄露通关笔记:Git泄露 Log - 教程
笔记·git·网络安全
鬼手点金13 小时前
构建有效 Agent 的核心原则
java·人工智能·git·学习·自动化
索西引擎15 小时前
Git 大文件阻断推送的成因与历史重写修复
git
csdn2015_15 小时前
git 合并分支
大数据·git·elasticsearch
91440623216 小时前
mac Git 账户切换问题
git·macos
留岁16 小时前
Git 命令行学习记录
git·学习·elasticsearch
笨笨饿17 小时前
#142_VS Code.map文件插件的用法
git·python·stm32·单片机·嵌入式硬件·物联网·vim
鬼手点金18 小时前
如何选择模型
java·前端·人工智能·git·深度学习
余槐i18 小时前
Claude Code Skills 放对目录却不生效:插件启用顺序与缓存的三个坑
git·开发工具·ai agent·mcp·claude code
程序员差不多先生2 天前
Anthropic 用 5 个月重写了 Git:当 AI Agent 把版本控制系统逼到墙角
人工智能·git·elasticsearch·deepseek v4 pro·kimi k3·glm 5.3·qwen3.7 max