简体   繁体   English

无法通过HTTP使用Git进行克隆

[英]Unable to clone using Git over HTTP

I am behind a proxy that does not allow the use of git://. 我在不允许使用git://的代理后面。 So I need to checkout using git over http. 所以我需要使用git在http上结帐。 For this, I have already set my proxy in git using, 为此,我已经在git中使用设置了我的代理,

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

However, I am able to clone only a few repos, while on others I am getting an error. 但是,我只能克隆几个存储库,而在另一些存储库上却出现错误。 For example: 例如:

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

works perfectly fine, while 工作完美,而

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

this returns the following error 这将返回以下错误

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

On running git clone http://anongit.kde.org/calligra I get the following error 在运行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

Can you please help me. 你能帮我么。

重新安装git为我解决了同一问题

我发现问题出在仅部分HTTP支持的KDE git托管。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM