Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There's an option http_proxy which should allow access through proxy, but it's not clear whether this should be in the command line, .hgrc or some global variable.

I tried it in the command line:

hg server_

but I still get a Connection timed out error.

share|improve this question
up vote 3 down vote accepted

It's actually an environment variable, so try http_proxy=http://proxy_server:4242 hg ... (replace 80 with whatever port your proxy is running on.)

share|improve this answer
May also need export: export http_proxy=... – nobar May 2 at 18:35

I can successfully use the following command:

hg clone <TheURl> <Optional Folder Name><proxy URL>

And obviously by replacing any <> instances with the relevant details.

share|improve this answer

You can setup proxy authentication in .hgrc file.

It store in ~/.hgrc. Here is an example.


Note: I currently use SourceTree app on Mac OSX.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.