cygwin下git出现cabundle.crt相关错误的解决办法

在windows下使用cygwin下的git访问需要https连接的git repository(比如github)时,有时会报告错误:

error: error setting certificate verify locations:
  CAfile: /usr/ssl/certs/ca-bundle.crt
  CApath: none while accessing https://github.com/username/repositoryname/info/refs
fatal: HTTP request failed

这是因为缺少证书所致。重新运行cygwin的setup.exe,然后安装ca-certificates包即可解决问题。


Creative Commons License

本文基于署名 2.5 中国大陆许可协议发布,欢迎转载,演绎或用于商业目的,但是必须保留本文的署名justrun(包含链接)。如您有任何疑问或者授权方面的协商,请给我留言

原文地址:https://www.cnblogs.com/JustRun1983/p/2740502.html