Github:克隆我的私人存储库时出错 [英] Github: error cloning my private repository
本文介绍了Github:克隆我的私人存储库时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用 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)gitincurl-ca-bundle.crt"
这将导致 [git-install-dir]/etc/gitconfig 文件的更改,也可以直接编辑该文件.
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)
(Original solutions found at http://github.com/blog/642-smart-http-support)
这篇关于Github:克隆我的私人存储库时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文