windows命令行临时设置代理
echo %http_proxy% echo %https_proxy% set http_proxy=http://127.0.0.1:7890 set https_proxy=http://127.0.0.1:7890
PowerShell
echo $env:http_proxy echo $env:https_proxy $env:http_proxy="http://127.0.0.1:7890" $env:https_proxy="http://127.0.0.1:7890"
Git 单独设置代理
git config --global --get http.proxy git config --global --get https.proxy git config --global http.proxy http://127.0.0.1:7890 git config --global https.proxy http://127.0.0.1:7890