M BUZZ CRAZE NEWS
// news

How to remove proxy from git I try, but still showing the error how to resolve it?

By Joseph Russell

My git is stuck whenever now I try pull,push or clone I remove the proxy but still no positive response from git.

Last time I used this command for proxy:

git config --global http.proxy 172.16.0.2:8080

I try these commands:

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

but still getting this response when I clone the repository or want to pull or push!

badar:DSA Lab Tasks$ git clone
Cloning into 'SEGP_Group10'...
fatal: unable to access ' Failed to connect to 172.16.0.2 port 8080: Connection timed ou

4 Answers

After using these comands

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

These two commands work for me after --unset the proxy

Use this command to get the list of all proxy defined, and then use --unset to disable them.

git config --global -l

Unset with the following command

git config --global --unset http.proxy

Target does not exist: You can see the ones that do here.

The server responded with a 404 error:

404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable. 

Source of 404 error meaning:

4

you need to also delete the environment variables below:

HTTPS_PROXY=
HTTP_PROXY=

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy