设置各类代理

Git设置代理

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
设置:
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 http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'

取消:
git config --global --unset http.proxy

git config --global --unset https.proxy

特殊设置:

git config --global http.https://github.com.proxy socks5://127.0.0.1:1080

git config --global --unset http.https://github.com.proxy

Idea设置代理

1
2
File->Settings->Appearance&Behavior->System Settings->HTTP Proxy
socks;localhost;1080