ref Only use a proxy for certain git urls/domains?
set the environment variables:
http_proxy=http://username:password@proxydomain:port
https_proxy=http://username:password@proxydomain:port
no_proxy=.domain.com,localhost,127.0.0.1,::1
git uses these environment variables.