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

相关推荐
Wiktok8 小时前
Git 提交规范网页说明
git
AWS官方合作商16 小时前
告别漫长等待:利用 Amazon GameLift Servers 实现分钟级快速迭代
前端·git·云计算·github·aws
红尘客栈216 小时前
git文件的上传
git
正经教主16 小时前
【Git】Git05-02:Github 基础同步命令
git·github
黎茗Dawn18 小时前
git-Windows-my-dell-笔记
开发语言·windows·git
命运之光1 天前
【快速解决】怎么用git拉取项目到本地
git
万山y1 天前
Git 命令大全
git
Siren_dream1 天前
linux安装git-lfs(无需root权限)
linux·运维·git
因为奋斗超太帅啦1 天前
Git分布式版本控制工具学习笔记(二)——git远程仓库
笔记·git·学习
艾莉丝努力练剑1 天前
【Git:分支管理】Git 分支管理完全指南:从创建、合并到冲突解决
linux·服务器·人工智能·git·gitee·centos·分支管理