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

相关推荐
悠然大月季13 小时前
git 怎么导出提交历史,文件是乱码
git·git导出历史记录·git导出历史乱码
chenshiming80215 小时前
在cursor下执行GIT回退版本
git
打点计时器18 小时前
Git快速上手教程
git
我才是一卓19 小时前
linux 安装简易 git 服务端并使用
linux·运维·git
IDIOT___IDIOT21 小时前
关于 git 进行版本管理的时候 gitignore 写入忽略规则而不生效的问题
大数据·git·elasticsearch
不想看见40421 小时前
Git 误删急救手册
大数据·git·elasticsearch
偷懒下载原神21 小时前
【linux操作系统】信号
linux·运维·服务器·开发语言·c++·git·后端
IT二叔21 小时前
Git Flow03-发布流程
git
IT二叔21 小时前
Git Flow08-摘樱桃
git
「QT(C++)开发工程师」1 天前
Git误操作急救手册大纲
git