プロキシプロキシを設定する

CMD は HTTP プロキシを設定します:

set http_proxy=http://127.0.0.1:10899
set https_proxy=http://127.0.0.1:10899

Socks5 プロキシ設定:

set http_proxy=socks5://127.0.0.1:10899
set https_proxy=socks5://127.0.0.1:10899

プロキシをキャンセルします:

set http_proxy=
set https_proxy=

Windows git bash
set proxy HTTP プロキシを設定します。

git config --global http.proxy http://127.0.0.1:10899
git config --global https.proxy http://127.0.0.1:10899

Socks5 プロキシを設定します。

git config --global http.proxy socks5://127.0.0.1:10899
git config --global https.proxy socks5://127.0.0.1:10899

代理店をキャンセルする

git config --global --unset http.proxy
git config --global --unset https.proxy

Windows PowerShell プロキシの設定 プロキシ
を設定するには、次の手順を実行します。

netsh winhttp set proxy 127.0.0.1:10899

プロキシテスト:

curl https://www.google.com

CMD を使用してプロキシの状況を表示します。

netsh winhttp show proxy

CMD キャンセル プロキシ:

netsh winhttp reset proxy

おすすめ

転載: blog.csdn.net/weixin_41303815/article/details/131292913