Config Git Connection Refuse

a dhiyaul asikin
1 min readAug 22, 2019

--

This happens because a proxy is configured in git.

Since it’s https proxy (and not http) git config http.proxy and git config --global http.proxycan't help.

1 : take a look at your git configuration

git config --global -l

If you have nothing related to https proxy like https_proxy=... the problem is not here.

If you have something related to https proxy then remove it from the file ~/.gitconfig and try again

2 : if it still doesn’t work, unset environment variables

Check your environment variables :

env|grep -i proxy

You should have one or several lines with https_proxy=...

Unset one by one with : unset https_proxy (or HTTPS_PROXY depending of the name of the variable)

3 : check environment variables again

env|grep -i proxy

If it shows nothing you should be good.

Note : This solution can applies to http and https proxy problems. just the variables name changes from https to http

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

a dhiyaul asikin
a dhiyaul asikin

No responses yet

Write a response