cmd
#设置
set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080
#取消
set http_proxy=
set https_proxy=
#如果有账密
set https_proxy_user=用户名
set https_proxy_pass=密码
Git Bash
#设置
export http_proxy=http://127.0.0.1:1080
export https_proxy=http://127.0.0.1:1080
#取消
export http_proxy=
export https_proxy=
#如果有账密
export https_proxy_user=用户名
export https_proxy_pass=密码