github http克隆返回'你在服务器上运行git update-server-info' [英] github http clone returns 'did you run git update-server-info on the server'
问题描述
我试图在Windows上克隆一个github项目。我在防火墙后面,所以不能使用ssh。运行:
I'm trying to clone a github project on windows. I'm behind a firewall so can't use ssh. Running:
git clone https://github.com/user/project.git
正在返回 https://github.com/user/project.git找不到:你运行过git update-服务器信息在服务器上?
因为这不是我的项目,有没有办法解决这个问题?
As it's not my project, is there a way to get around this?
编辑:
我试图克隆的项目是:
https://github.com/mitsuhiko/jinja2.git
编辑:
抱歉的人 - 是一个打字机。在Windows上的Git Bash does not让你复制粘贴,我错过了一封信。
Sorry people - was a typeo. Git Bash on windows does't let you copy paste and i missed a letter.
推荐答案
一个常见的原因是这种情况(或者,在这种情况下,根据OP directedbit ,一个简单的错字)。
GitHub repo url区分大小写,详见为什么Github项目文档页面URL大小写敏感?有什么负面影响?。
One usual reason is the case (or, in this instance, according to the OP directedbit, a simple typo) .
GitHub repo url is case sensitive, as explained in "Why are Github project document page urls case sensitive? What are the negative effects?".
请参阅 GitHub回购问题:
See as an illustration this GitHub repo issue:
问题,但解决方法非常简单。
在URL中缺少大于KnpLabs
的大小写,所以请使用下面的代码。
I had the same issue but the fix is insanely simple.
Lack of capitalisation forKnpLabs
in the URLs so use the following instead.
[KnpMenu]
git=https://github.com/KnpLabs/KnpMenu.git
[KnpMenuBundle]
git=https://github.com/KnpLabs/KnpMenuBundle.git
target=bundles/Knp/Bundle/MenuBundle
=>通过
knplabs / KnpMenuBundle.git
至
KnpLabs / KnpMenuBundle.git
(大小写更改)
这篇关于github http克隆返回'你在服务器上运行git update-server-info'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!