Living a Simple Life is a Happy Life

Been here so long got to calling it home.

How to Set Proxy for Git

| Comments

全局设置和取消:

1
2
3
4
5
6
7
git config --global https.proxy http://127.0.0.1:1080

git config --global https.proxy https://127.0.0.1:1080

git config --global --unset http.proxy

git config --global --unset https.proxy

local设置和取消:

1
2
3
4
5
6
7
git config  https.proxy http://127.0.0.1:1080

git config  https.proxy https://127.0.0.1:1080

git config  --unset http.proxy

git config  --unset https.proxy

Comments