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

  • 之前有安装过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的解决办法

猜你喜欢

转载自blog.csdn.net/qq_42840269/article/details/81297336