git behind authentication proxy

git config --global http.proxy http://username:password@proxy.example.com:8080
git config --global https.proxy http://username:password@proxy.example.com:8080

via http://stackoverflow.com/questions/783811/getting-git-to-work-with-a-proxy-server