2012-02-09 144 views
8

我背后的代理不允许使用git://。所以我需要在http上使用git结帐。对于这一点,我已经设置使用我在git的代理,无法通过HTTP克隆使用Git

git config --global http.proxy http://172.30.0.16:3128 

但是,我能够克隆只有少数回购,而别人,我得到一个错误。 例如:

git clone http://github.com/jcnetdev/yubnub.git 

工作完全正常,而

https://github.com/ferhatelmas/InterviewStreet.git 

这将返回以下错误

Cloning into InterviewStreet... 
warning: remote HEAD refers to nonexistent ref, unable to checkout. 

在运行 git clone http://anongit.kde.org/calligra我收到以下错误

Cloning into calligra... 
error: The requested URL returned error: 502 while accessing http://anongit.kde.org/calligra/info/refs 

你能帮我吗。

+0

那么,在这种情况下,KDE的克隆应该也可以工作。 – uyetch 2012-02-09 01:35:37

+0

Cloning InterviewStreet适合我。你有没有正确设置你的SSH密钥? – Saurav 2012-02-09 01:36:53

+0

@Saurav:我试图通过HTTP克隆采访街,它工作。问题似乎是从KDE克隆Calligra。我无法使用ssh,因为我位于仅允许HTTP的代理之后。 – uyetch 2012-02-09 01:38:22

回答

-1

我发现问题是只有部分HTTP支持的KDE git托管。

+5

那么解决方案是什么呢? – Soumajyoti 2013-06-05 13:12:43