Skip to content

Instantly share code, notes, and snippets.

@LeonDevLifeLog
Last active February 12, 2019 01:32
Show Gist options
  • Save LeonDevLifeLog/3462ad85e2e892d0ef0f8a62ca51dc4a to your computer and use it in GitHub Desktop.
Save LeonDevLifeLog/3462ad85e2e892d0ef0f8a62ca51dc4a to your computer and use it in GitHub Desktop.
windows cmd设置代理
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://github.com.proxy socks5://127.0.0.1:1080
#取消代理
git config --global --unset http.https://github.com.proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment