I am using git behind a corporate firewall, and I am successfully cloning external projects by using the http.proxy --global config.
My problem arises when I want to
I always set:
no_proxy=.mycompany
(export if I am on Unix, or a simple set on Windows)
It is enough to bypass the proxy for all intranet url ending with ".mycompany".
See for an example:
I use it in my own project: .proxy.example:
export http_proxy=http://username:userpassword@server.company:port
export https_proxy=http://username:userpassword@server.company:port
export no_proxy=.company localhost