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.
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.
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.
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
toKnpLabs/KnpMenuBundle.git
(case change)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With