If you need to download files with git under a proxy, setting proxy server system-wide couldn't be enough. You could also try the following:
git config --global http.proxy http://<proxy-server>:<port>/