sdabet
sdabet

Reputation: 18670

Github HTTPS cloning via proxy

When trying to clone a github repository via a proxied connection, I get the following error:

Cannot get remote repository information.
Perhaps git-update-server-info needs to be run there?

I tried to set env variables http_proxy and https_proxy, I also tried to run

git --global my.proxy.com:port
but it still doesn't work.

Any idea ?

Upvotes: 3

Views: 2755

Answers (1)

Mark Longair
Mark Longair

Reputation: 467231

I suspect that your version of git is too old - you need at least version 1.6.6 in order to use Smart HTTP. I thought that GitHub would fall back to the dumb HTTP protocol if the client couldn't do Smart HTTP, but in any case, upgrading your version of git should eliminate a number of possible problems.

Upvotes: 3

Related Questions