Github:错误克隆我的私人存储库 [英] Github: error cloning my private repository
问题描述
我尝试使用https-URL克隆我的GitHub项目,但它失败并出现错误:
I'm trying to clone my GitHub project using the https-URL, but it fails with an error:
$ git clone https://foo@github.com/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://foo@github.com/foo/foo-private.git/info/refs
fatal: HTTP request failed
我做错了什么?
推荐答案
我在Windows上看到过这个,带有msysgit 1.7.2.3。您必须修复 bin / curl-ca-bundle.crt 的路径。我必须使用反斜线指定绝对路径:
I have seen this on Windows, with msysgit 1.7.2.3. You have to fix the path to bin/curl-ca-bundle.crt. I had to specify the absolute path, using back-slashes:
git config --system http.sslcainfo "C:\Program Files (x86)\git\bin\curl-ca-bundle.crt"
或—不是真的推荐—您可以选择完全关闭SSL检查:
or — not really recommended — you may choose to switch off SSL checks completely by executing:
git config --system http.sslverify false
对于这两种情况,这将导致对[git-install-dir] / etc / gitconfig文件的更改,该文件也可以直接编辑。
For both cases, this will result in changes to [git-install-dir]/etc/gitconfig file, which may be edited directly, too.
(原始解决方案可在 http://github.com/blog/642-smart -http-support )
这篇关于Github:错误克隆我的私人存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!