Living a Simple Life is a Happy Life

有饭吃,自由自在,就非常开心

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