git國內訪問較慢,走代理較快。
方法:git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:port_number(有用戶和密碼)
git config --global http.proxy http://proxy.server.com:port_number(無用戶和密碼)
注:proxy.server.com指代理地址,port_number指端口號。
參考內容:http://stackoverflow.com/questions/783811/getting-git-to-work-with-a-proxy-server