Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git: How to remove proxy

Tags:

git

github

I am trying to push to my repo but receiving an error:

fatal: unable to access 'https://github.com/myrepo.git/': Could not resolve proxy: --list         

I already changed the proxy settings :

git config --global --unset http.proxy   

my global config settings are:

push.default=simple http.sslverify=false url.https://.insteadof=git:// credential.helper=cache --timeout=3600 

But still getting this error? How can I solve this?

like image 718
Leeuwtje Avatar asked Aug 28 '15 10:08

Leeuwtje


People also ask

How do I get rid of proxy?

To remove a proxy server by using the Netsh.exe toolClick Start, click Run, type cmd, and then click OK. At the command prompt, type netsh winhttp reset proxy, and then press ENTER.

How do I change my proxy settings in Git?

Setting the proxy for Gitgit config --global --add http. proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT. git config --global --add https. proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT.

How set no proxy git bash?

You can do same in Windows. Add an environment variable 'no_proxy' with value of URLS_to_Ignore. Don't forget to start a new CMD shell. Or to get working in current CMD just set no_proxy=URLS_to_Ignore .


1 Answers

Check your enviroment:

echo $http_proxy echo $https_proxy echo $HTTPS_PROXY echo $HTTP_PROXY 

and delete with export http_proxy=

Or check https and http proxy

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

Or do you have the proxy in the local config?

git config --unset http.proxy git config --unset https.proxy 
like image 193
PiTheNumber Avatar answered Sep 19 '22 06:09

PiTheNumber