我正在尝试在Windows上克隆一个github项目.我在防火墙后面所以不能使用ssh.运行:
git clone https://github.com/user/project.git
Run Code Online (Sandbox Code Playgroud)
正在回归 https://github.com/user/project.git not found: did you run git update-server-info on the server?
因为这不是我的项目,有没有办法解决这个问题?
编辑:
我试图克隆的项目是:
https://github.com/mitsuhiko/jinja2.git
Run Code Online (Sandbox Code Playgroud)
编辑:对不起人 - 是一个打字机.Windows上的Git Bash不允许你复制粘贴,我错过了一封信.
一个通常的原因是这种情况(或者,在这种情况下,根据OP指示,一个简单的错字).
GitHub repo url区分大小写,如" 为什么Github项目文档页面URL区分大小写?有什么负面影响? ".
请参阅此GitHub回购问题:
我有同样的问题,但修复非常简单.URL中
缺少大写,KnpLabs
因此请使用以下内容.
[KnpMenu]
git=https://github.com/KnpLabs/KnpMenu.git
[KnpMenuBundle]
git=https://github.com/KnpLabs/KnpMenuBundle.git
target=bundles/Knp/Bundle/MenuBundle
Run Code Online (Sandbox Code Playgroud)
=>从更新网址
knplabs/KnpMenuBundle.git
来
KnpLabs/KnpMenuBundle.git
(情况变化)