probably at the beach
probably at the beach

Reputation: 15207

github http clone returns 'did you run git update-server-info on the server'

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

Answers (1)

VonC
VonC

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 for KnpLabs 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

Related Questions