2013-01-31 143 views

回答

2

您可以使用git bash中的以下命令來設置Git代理。爲HTTP和HTTPS代理設置。

git config --global http.proxy http://username:[email protected]:8080 
git config --global https.proxy http://username:[email protected]:8080 

//Replace username with your proxy username 
//Replace password with your proxy password 
//Replace proxy.server.com with the proxy domain URL. 
//Replace 8080 with the proxy port no configured on the proxy server. 

檢查How to configure Git proxyHow to unset the Git Proxy更多細節