I almost always work behind a firewall and use an http proxy, which is set in my global git configuration. Now and then I'm stuck in a public location outside the firewall, and revert to a non-proxy lifestyle. This means telling my browser not to use the proxy, etc., etc., which I have to undo once I'm back safe and snug in a friendly location.
I want to do a single pull, or commit/push with git outside the firewall, but I don't want to delete the proxy setting from the configuration, because an hour from now I will just have to add it back again. I want to so something like
git -c http.proxy="" pull
or
git --unset http.proxy pull
so that I can just do the pull this one time without the proxy. But the first one results in error: Missing value for 'http.proxy'
and the second is not a valid syntax.
So the question is:
How do I unset http.proxy for just one pull?