【问题标题】:github http clone returns 'did you run git update-server-info on the server'github http clone 返回'你在服务器上运行了 git update-server-info'
【发布时间】:2012-03-20 11:36:37
【问题描述】:

我正在尝试在 Windows 上克隆一个 github 项目。我在防火墙后面,所以不能使用 ssh。运行:

 git clone https://github.com/user/project.git

正在返回https://github.com/user/project.git not found: did you run git update-server-info on the server?

由于这不是我的项目,有没有办法解决这个问题?

编辑:

我要克隆的项目是:

 https://github.com/mitsuhiko/jinja2.git

编辑: 对不起的人- 是打字机。 Windows 上的 Git Bash 不允许您复制粘贴,我错过了一封信。

【问题讨论】:

  • Git bash 有一种复制和粘贴的方法,但并不容易弄清楚。只需用鼠标右键单击标题栏(包括 x 在内的 3 个按钮所在的位置)。然后,在菜单中,选择编辑后跟标记,你应该知道其余的......

标签: git github


【解决方案1】:

一个常见的原因是这种情况(或者,在这种情况下,根据OP directedbit,一个简单的typo)。
GitHub repo url 区分大小写,如“Why are Github project document page urls case sensitive? What are the negative effects?”中所述。

请参见GitHub repo issue:

我遇到了同样的问题,但修复非常简单。
URL 中的KnpLabs 缺少大写字母,因此请改用以下内容。

[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 的 URL 都是区分大小写的,所以我不确定这是否是导致它的原因。编辑了问题。
  • 道歉。重新做了,它是一种类型 - Windows 上的 Git Bash 不允许我粘贴。
  • @directedbit 没问题。我已将您的结论包含在答案中以提高知名度
猜你喜欢
  • 2013-10-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-07-27
  • 2018-11-03
  • 1970-01-01
  • 2021-02-26
  • 1970-01-01
相关资源
最近更新 更多