# http、https、socks5 协议
export http_proxy="http://proxyAddress:port"
export https_proxy="http://proxyAddress:port"
export http_proxy="socks5://proxyAddress:port"
export https_proxy="socks5://proxyAddress:port"
# 可以使用所有流量走代理
export ALL_PROXY=http://proxyAddress:port
export ALL_PROXY=http://proxyAddress:port
# ~/.bashrc ,经常使用的话可以使用
alias setproxy="export ALL_PROXY=socks5://proxyAddress:port" alias unsetproxy="unset ALL_PROXY"
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'