# Git代理设置
# 设置代理
git config --global https.proxy 代理地址
git config --global http.proxy 代理地址
1
2
2
# 查看当前已设置的代理
git config --global --get https.proxy
git config --global --get https.proxy
1
2
3
2
3
# 取消代理
git config --global --unset http.proxygit config --global --unset https.proxy
1
# npm
设置代理
npm config set proxy http://10.22.129.20:8080
npm config set proxy https://10.22.129.20:8080
1
2
2
# yarn
设置代理
# 配置国内镜像-淘宝镜像
yarn config set registry https://registry.npm.taobao.org
1
# 查看代理
yarn config list
1
# 设置代理
yarn config set proxy http://10.22.3.21:8080 http://username:password@server:port
yarn confit set https-proxy http://username:password@server:port
1
2
2
# 取消代理
yarn config delete proxy
yarn config delete https-proxy
1
2
2