Mercurial: edit ~/.hgrc
as shown here: http://www.selenic.com/mercurial/hgrc.5.html#http-proxy
Git: edit ~/.gitconfig
add an entry like this:
[http]
proxy = hostname:port
Mercurial: edit ~/.hgrc
as shown here: http://www.selenic.com/mercurial/hgrc.5.html#http-proxy
Git: edit ~/.gitconfig
add an entry like this:
[http]
proxy = hostname:port
转载于:https://www.cnblogs.com/liuzhenwei/p/5538650.html