用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
包即可解决问题。