Skip to content

Instantly share code, notes, and snippets.

@kongdd
Forked from laispace/git 设置和取消代理
Last active March 20, 2020 06:06
Show Gist options
  • Save kongdd/fb0680fc182baacf9bb2a49fc2007680 to your computer and use it in GitHub Desktop.
Save kongdd/fb0680fc182baacf9bb2a49fc2007680 to your computer and use it in GitHub Desktop.
代理.md
# 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