- 之前有安装过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