I'm using Git on Windows, on a corporate network where I'm behind an HTTP proxy with Basic authentication. Outbound SSH doesn't work, so I have to use HTTPS through the proxy.
I'm aware of how to use
git config http.proxy
Instead of using git setting, you can also use environment variable (that you can set just for your session), as described in this answer:
set http_proxy=http://username:password@proxydomain:port set https_proxy=http://username:password@proxydomain:port set no_proxy=localhost,.my.company
So your wrapper script could, instead of modifying the
.gitconfig (and leaving your password in plain text) set environment variables on demand, just for your current session.