I almost always work behind a firewall and use the http proxy that is installed in my global git configuration. From time to time, I get stuck in a public place outside the firewall and return to a non-lifestyle. This means that my browser should not use a proxy server, etc. Etc., Which I must cancel as soon as I return to a safe place and fun in a convenient place.
I want to make one click or commit / click with git outside the firewall, but I do not want to remove proxy settings from the configuration, because in an hour I will just add it back. I want something like
git -c http.proxy="" pull
or
git --unset http.proxy pull
so that I can just do it one time without a proxy. But the first leads to error: Missing value for 'http.proxy', and the second is not a valid syntax.
So the question is:
How to disable http.proxy for just one click?
source
share