Reputation: 15207
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
is returning https://github.com/user/project.git not found: did you run git update-server-info on the server?
As it's not my project, is there a way to get around this?
EDIT:
The project I'm trying to clone is:
https://github.com/mitsuhiko/jinja2.git
EDIT: Sorry people - was a typeo. Git Bash on windows does't let you copy paste and i missed a letter.
Upvotes: 7
Views: 11694
Reputation: 1324827
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?".
See as an illustration this GitHub repo issue:
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
=> Update your urls from
knplabs/KnpMenuBundle.git
to
KnpLabs/KnpMenuBundle.git
(case change)
Upvotes: 8