配置终端代理 发表于 2025-04-13 更新于 2025-06-11 分类于 随想 介绍如何配置控制台【临时】代理网络。 配置git终端代理(常用)1234567# 设置代理git config --global http.proxy "http://127.0.0.1:10809"git config --global https.proxy "https://127.0.0.1:10809"# 取消代理git config --global --unset http.proxygit config --global --unset https.proxy Power shell1234567891011# 设置$env:http_proxy = "http://代理服务器地址:端口"$env:https_proxy = "http://代理服务器地址:端口"# 查看$env:http_proxy$env:https_proxy# 清除Remove-Item Env:http_proxyRemove-Item Env:https_proxy