ubuntu/linux 下 git 通过代理下载数据 (最简单的方式)

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

原文地址:https://www.cnblogs.com/nice-forever/p/6286360.html