-
-
Save kongdd/fb0680fc182baacf9bb2a49fc2007680 to your computer and use it in GitHub Desktop.
代理.md
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
# git代理 | |
``` | |
git config --global http.proxy http://127.0.0.1:1080 | |
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global http.proxy socks5://127.0.0.1:1080 | |
git config --global http.proxy socks5://127.0.0.1:1081 | |
git config --global https.proxy socks5://127.0.0.1:1081 | |
git config --global http.proxy http://127.0.0.1:8118 | |
git config --global https.proxy http://127.0.0.1:8118 | |
``` | |
# 取消代理 | |
```bash | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
``` | |
# cmd 代理 | |
``` | |
set http_proxy=http://127.0.0.1:1080 | |
set https_proxy=http://127.0.0.1:1080 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment