Git: How to remove proxy
Did you already check your proxys here?
git config --global --list
or
git config --local --list
You can list all the global settings using
git config --global --list
My proxy settings were set as
...
remote.origin.proxy=
remote.origin.proxy=address:port
...
The command git config --global --unset remote.origin.proxy
did not work.
So I found the global .gitconfig
file it was in, using this
git config --list --show-origin
And manually removed the proxy fields.
This is in the case if first answer does not work The latest version of git does not require to set proxy it directly uses system proxy settings .so just do these
unset HTTP_PROXY
unset HTTPS_PROXY
in some systems you may also have to do
unset http_proxy
unset https_proxy
if you want to permanantly remove proxy then
sudo gsettings set org.gnome.system.proxy mode 'none'
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