1.设置方式:http和socks
v2rayN 默认监听 1080/1081 端口,如果修改过默认端口,那么请自行替换下列端口。其中1080 为 socks 端口,1081 为 http 端口。
博主的 v2rayN 监听端口为:
12socks:10808http:10809
2.设置http代理
12git config --global http.proxy http://127.0.0.1:10809git config --global https.proxy https://127.0.0.1:10809
3.设置scoks代理
12git config --global http.proxy socks5://127.0.0.1:10808git config --global https.proxy socks5://127.0.0.1:10808
4.查看 Git 所有配置
1git config -l
5.取消代理设置
12git config --global --unset http.proxygit config --global --unset https.proxy
回帖(7):