Last active
February 12, 2019 01:32
-
-
Save LeonDevLifeLog/3462ad85e2e892d0ef0f8a62ca51dc4a to your computer and use it in GitHub Desktop.
windows cmd设置代理
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set HTTP_PROXY=http://192.168.16.232:8080 | |
set HTTPS_PROXY=http://192.168.16.232:8080 | |
set http_proxy=socks5://127.0.0.1:1080 | |
set https_proxy=socks5://127.0.0.1:1080 | |
export HTTP_PROXY=http://192.168.16.232:8080 | |
export HTTPS_PROXY=http://192.168.16.232:8080 | |
#只对github.com | |
git config --global http.https://git.521000.best.proxy socks5://127.0.0.1:1080 | |
#取消代理 | |
git config --global --unset http.https://git.521000.best.proxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment