Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

github

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.

like image 840
probably at the beach Avatar asked Mar 20 '12 11:03

probably at the beach


People also ask

Why I Cannot clone a repository from GitHub?

If you're unable to clone a repository, check that: You can connect using HTTPS. For more information, see "HTTPS cloning errors." You have permission to access the repository you want to clone.

What is git clone?

git clone is primarily used to point to an existing repo and make a clone or copy of that repo at in a new directory, at another location. The original repository can be located on the local filesystem or on remote machine accessible supported protocols. The git clone command copies an existing Git repository.


1 Answers

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)

like image 87
VonC Avatar answered Sep 22 '22 14:09

VonC