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
git config --global http.proxy http://user:password@domain:port
git config --global http.proxy http://clairton:123456@proxy.clairtonluz.com.br:8080