git proxy
1
2
3
4
5
6
7
8
9
10
11
12
| # http proxy
git config http.proxy 'http://192.168.50.xx:80'
git config --global http.proxy http://proxy.mycompany:80
# socks5 proxy
# project
git config http.proxy 'socks5://192.168.50.4:10800'
git config https.proxy 'socks5://192.168.50.4:10800'
# global
git config --global http.proxy 'socks5://192.168.50.90:1080'
git config --global https.proxy 'socks5://192.168.50.90:1080'
|
1
2
3
4
5
| git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
|
https://gist.github.com/laispace/666dd7b27e9116faece6
https://www.jianshu.com/p/739f139cf13c