Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 593
sdabet Avatar asked Apr 24 '26 04:04

sdabet


1 Answers

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.

like image 192
Mark Longair Avatar answered Apr 25 '26 19:04

Mark Longair



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!