1、CMD 走 Socks5:
set http_proxy="socks5://127.0.0.1:1080"
set https_proxy="socks5://127.0.0.1:1080"

2、CMD 走 HTTP:
set http_proxy="http://127.0.0.1:1081"
set https_proxy="http://127.0.0.1:1081"

3、PowerShell 走 Socks5:
$env:http_proxy="socks5://127.0.0.1:1080"
$env:https_proxy="socks5://127.0.0.1:1080"

4、PowerShell 走 HTTP:
$env:http_proxy="http://127.0.0.1:1081"
$env:https_proxy="http://127.0.0.1:1081"

5、Git 走 Sokcs5:
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080

6、Git 走 HTTP:
git config --global http.proxy http://127.0.0.1:1081
git config --global https.proxy http://127.0.0.1:1081

7、Git 取消代理:
git config --global --unset http.proxy
git config --global --unset https.proxy
Last modification:May 29th, 2020 at 02:32 pm
如果觉得我的文章对你有用,请随意赞赏