Git及Github代理

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 查看当前设置
git config --global --list

# socks5
git config --global https.proxy socks5://127.0.0.1:7890

git config --global http.proxy socks5://127.0.0.1:7890

# http
git config --global http.proxy http://127.0.0.1:7890

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

git config --global --unset http.proxy

git config --global --unset https.proxy

Scoop代理

1
scoop config proxy 127.0.0.1:7890

npm镜像仓库

1
--registry=https://registry.npmmirror.com