我尝试使用 https-URL 克隆我的 GitHub 项目,但失败并出现错误:
$ git clone https://[email protected]/foo/foo-private.git
Cloning into foo-private...
Password:
error: error setting certificate verify locations:
CAfile: /bin/curl-ca-bundle.crt
CApath: none
while accessing https://[email protected]/foo/foo-private.git/info/refs
fatal: HTTP request failed
我究竟做错了什么?
我在 Windows 上使用 msysgit 1.7.2.3 看到过这个。您必须修复 bin/curl-ca-bundle.crt 的路径。我必须使用反斜杠指定绝对路径:
git config --system http.sslcainfo "C:\Program Files (x86)\git\bin\curl-ca-bundle.crt"
这将导致 [git-install-dir]/etc/gitconfig 文件发生更改,该文件也可以直接编辑。
(原始解决方案位于http://github.com/blog/642-smart-http-support)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)