Моя проблема была решена с помощью этой команды
git config --global http.proxy http://login:password@proxyServer:proxyPort