56 字
1 分钟
设置git走ssr(socks5)代理
2018-05-23
  • Kramdown table of contents {.toc}

Setting proxy#

if socks5(SSR)
first, you need to know you local socks5 proxy ip address and port.
eg. 127.0.0.1 port 1086
then use this command to set proxy

git config --global http.proxy socks5h://127.0.0.1:1080

if http/https
use this command:

git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080

To unset proxys#

git config --global --unset http.proxy
git config --global --unset https.proxy
设置git走ssr(socks5)代理
https://static.next.liqimore.com/2018/setting-git-proxy
作者
Ricky Li
发布于
2018-05-23
许可协议
CC BY-NC-SA 4.0
如果评论不显示,请刷新页面重新加载. Please refresh if comments didn't show up.