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

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

1
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(路径得看自己文件相对应的位置)如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[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文件(我的是win10),在查看下将隐藏的项目打个勾
    打开隐藏文件

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

 上一篇

JavaScript JavaScript算法