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.
I have
The below method works for me:
echo 'export http_proxy=http://username:password@roxy_host:port/' >> ~/.bash_profile
echo 'export https_proxy=http://username:password@roxy_host:port' >> ~/.bash_profile