Note: while the use-case described is about using submodules within a project, the same applies to a normal git clone of a repository over HTTP.
git clone
I have
$http_proxy is for http://github.com.... $https_proxy is for https://github.com...