You could too edit .gitconfig file located in %userprofile% directory on Windows system (notepad %userprofile%.gitconfig) or in ~ directory on Linux system (vi ~/.gitconfig) and add a http section as below.
Content of .gitconfig file :
[http]
proxy = http://proxy.mycompany:80