GitHub Desktop报错fatal: unable to access 'https://github.com……: schannel: failed to open CA file 'C:/...

昨天github桌面版push的时候开始报错,提示某个crt文件找不到,大概就是下面这样

fatal: unable to access 'https://github.com/XXX/': schannel: failed to open CA file 'C:/Users/Andrew/AppData/Local/GitHubDesktop/app-1.2.2/resources/app/git/mingw64/bin/curl-ca-bundle.crt': No such file or directory

顺着提示的文件夹一路点击进去,确实没有那个crt文件。

然后搜索了半天,终于在stackoverflow上找到了相关的答案。

stackoverflow上的答案是用记事本打开"C:\ProgramData\Git\config",

然后将其中的“”sslCAInfo=……”改为 sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt,保存然后重新提交。

试了一下,我的并没有用,因为我的c盘并没有这个文件,不过启发了我,因为我以前报错的文件夹好像也包含了mingw64这个文件夹。

所以把sslCAInfo的地址改为原来报错文件夹下面的mingw64中相应的文件的地址就好了。

比如我的就是:

C:/Users/Administrator/AppData/Local/GitHubDesktop/app-1.2.3/resources/app/git/mingw64/ssl/certs/ca-bundle.crt

附一张修改后可以成功上传的config文件图片

stackoverflow相关地址:https://stackoverflow.com/questions/50612862/fatal-unable-to-access-schannel-failed-to-open-ca-file-no-such-process-gith

github关于此问题的issue:https://github.com/desktop/desktop/issues/4817

 

转载于:https://www.cnblogs.com/xianxiaobo/p/9288558.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值