2

I'm trying to clone a repository, but i keep getting the following error:

fatal: unable to access 'https://bitbucket.org/amberm291/funkme/': Failed to connect to 202.141.80.19 port 3128: Connection timed out

On googling a little further i tried to unset the http.proxy and https.proxy in my system. Also i ran the following command:

git config --global -l

It gave the following output:

[email protected]
user.name=amberm291

I don't see any proxy variable in this output. Also my http_proxy environment variable in linux is set to none. I'm not sure what is the problem. Any help will be highly appreciated.

2
  • What git config -l returns? (There is more congit than just the global one) Commented Dec 16, 2014 at 19:42
  • Do you have environment variables like HTTP_PROXY or HTTPS_PROXY? Commented Dec 16, 2014 at 19:42

1 Answer 1

1

You have configured git to use proxy.

But that proxy is not active ( running ) since you are at your home not at IITG.

So clear your environment variables(both http_proxy and https_proxy) and proxy settings and it will work.

Try

$echo $http_proxy
$echo $https_proxy

to check the values of these variables just before cloning the repo.

Commands to unset proxy for git ( if you have configured )

git config --global --unset http.proxy
git config --global --unset https.proxy

-- Harshil Lodhi

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.