临时代理:

export HTTP_PROXY=http://127.0.0.1:58591; 
export HTTPS_PROXY=http://127.0.0.1:58591; 
export ALL_PROXY=socks5://127.0.0.1:51837

Git

git push走ssh协议的话,需要配置 ~/.ssh/config

Host github.com
  Hostname github.com
  ProxyCommand /usr/bin/corkscrew 127.0.0.1 58591 %h %p