参考地址:http://www.ggat.cn/newsInfo.html/117
用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包即可解决问题。
本文介绍了解决Cygwin环境下使用Git访问HTTPS仓库时遇到的证书验证错误的方法。通过安装ca-certificates包可以有效避免此类问题。
2090

被折叠的 条评论
为什么被折叠?



