http
export http_proxy=http://127.0.0.1:1087;
export https_proxy=http://127.0.0.1:1087;
set http_proxy=http://127.0.0.1:1087;
set https_proxy=http://127.0.0.1:1087;
socks
export http_proxy=socks5://127.0.0.1:10808
export https_proxy=socks5://127.0.0.1:10808
# 使用sock5
set http_proxy=socks5://127.0.0.1:10808
set https_proxy=socks5://127.0.0.1:10808
取消
unset http_proxy
unset https_proxy
set http_proxy=
set https_proxy=
git单独设置
git config --global http.proxy 'socks5://127.0.0.1:10808'
git config --global https.proxy 'socks5://127.0.0.1:10808'
# 取消
git config --global --unset http.proxy
git config --global --unset https.proxy

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论