Github报错fatal unable to access No such file or directory

本文详细介绍了在更新GitHub新版后,遇到GitPull错误的解决步骤。主要问题为SSL证书文件缺失导致的连接失败,通过修改C:ProgramDataGitconfig文件中的sslCAinfo路径,指向正确的证书文件位置,即可恢复正常。适用于遇到类似HTTPS访问问题的开发者。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  • 之前有安装过github旧版,一直正常,后来更新了新版,但是git pull的时候如有如下报错:

fatal: unable to access ‘https://github.com/eefocus/deploy.git/‘: schannel: failed to open CA file ‘C:/Users/Administrator/AppData/Local/GitHubDesktop/app-1.2.3/resources/app/git/mingw64/bin/curl-ca-bundle.crt’: No such file or directory

  • 找到C:\ProgramData\Git\config,打开,修改sslCAinfo(路径得看自己文件相对应的位置)如下:
[core]
    symlinks = true
    autocrlf = true
    fscache = true
[color]
    diff = auto
    status = auto
    branch = auto
    interactive = true
[pack]
[help]
    format = html
[https]
    sslCAinfo = C:/Users/Administrator/AppData/Local/GitHubDesktop/app-1.2.6/resources/app/git/mingw64/ssl/certs/curl-ca-bundle.crt
[sendemail]
    smtpserver = /bin/msmtp.exe

[diff "astextplain"]
    textconv = astextplain
[rebase]
    autosquash = true
  • 重点提示:默认的是[http],如果有必要你需要改成[https]
  • 如果不到C:\ProgramData文件,在查看下将隐藏的项目打个勾

打开隐藏文件* 之前有安装过github旧版,一直正常,后来更新了新版,但是git pull的时候如有如下报错:

fatal: unable to access 'https://github.com/eefocus/deploy.git/': schannel: failed to open CA file 'C:/Users/Administrator/AppData/Local/GitHubDesktop/app-1.2.3/resources/app/git/mingw64/bin/curl-ca-bundle.crt': No such file or directory
  • 找到C:\ProgramData\Git\config,打开,修改sslCAinfo(路径得看自己文件相对应的位置)如下:
[core]
    symlinks = true
    autocrlf = true
    fscache = true
[color]
    diff = auto
    status = auto
    branch = auto
    interactive = true
[pack]
[help]
    format = html
[https]
    sslCAinfo = C:/Users/Administrator/AppData/Local/GitHubDesktop/app-1.2.6/resources/app/git/mingw64/ssl/certs/curl-ca-bundle.crt
[sendemail]
    smtpserver = /bin/msmtp.exe

[diff "astextplain"]
    textconv = astextplain
[rebase]
    autosquash = true
  • 重点提示:默认的是[http],如果有必要你需要改成[https]
  • 如果不到C:\ProgramData文件,在查看下将隐藏的项目打个勾
    打开隐藏文件

原文地址:Github报错fatal unable to access No such file or directory

参考:GitHub Desktop报错fatal: unable to access ‘https://github.com……: schannel: failed to open CA file ‘C:/Users……bundle.crt’: No such file or directory的解决办法

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值