It has been 550 days since the last update, the content of the article may be outdated.
【Windows】终端配置代理
AiGuoHou1 CMD 设置代理
1.1 设置 HTTP 代理:
txt
| 1 | set http_proxy=http://127.0.0.1:7890 & set https_proxy=http://127.0.0.1:7890 | 
1.2 socks5 代理设置:
txt
| 1 | set http_proxy=socks5://127.0.0.1:7890 | 
1.3 取消代理:
txt
| 1 | set http_proxy= | 
2 Git Bash 设置代理
2.1 设置 HTTP 代理:
txt
| 1 | git config --global http.proxy http://127.0.0.1:7890 | 
2.2 设置 socks5 代理:
txt
| 1 | git config --global http.proxy socks5://127.0.0.1:7890 | 
2.3 取消代理:
txt
| 1 | git config --global --unset http.proxy | 
3 PowerShell 设置代理
3.1 设置 HTTP 代理:
txt
| 1 | $Env:http_proxy="http://127.0.0.1:7890";$Env:https_proxy="http://127.0.0.1:7890" | 
3.2 代理测试:
txt
| 1 | curl https://www.google.com | 








































































































































































































































































































































































