windows:
HTTP(S)代理服務器:127.0.0.1:5783
SOCKS代理服務器:127.0.0.1:5789
- set http_proxy=http://127.0.0.1:1189
- set https_proxy=http://127.0.0.1:1189
SOCKS5 代理設置:
git代理
git config --global http.proxy
http://127.0.0.1:8118
git config --global https.proxy
http://127.0.0.1:8118
SOCKS5 代理設置
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080
取消
git config --global --unset http.proxy
git config --global --unset https.proxy
Socks代理比其他應用層代理要快得多。它通常綁定在代理服務器的1080端口上。
SOCK4只支持TCP協議,SOCK5支持TCP和UDP協議
Http代理其端口一般是80