git config --global http.proxy 'http://127.0.0.1:8030'
git config --global https.proxy 'http://127.0.0.1:8030'
# 或者在终端中执行
export https_proxy=http://127.0.0.1:8560
export http_proxy=http://127.0.0.1:8560
git config --global --unset http.proxy
git config --global --unset https.proxy
NPM设置代理:
npm config set proxy http://127.0.0.1:8030
npm config set https-proxy http://127.0.0.1:8030
npm config delete proxy
npm config delete https-proxy
YARN设置代理:
yarn config set proxy http://127.0.0.1:8030
yarn config set https-proxy http://127.0.0.1:8030
yarn config delete proxy
yarn config delete https-proxy
Git npm yarn代理的一些操作记录以免忘记了
最新推荐文章于 2025-04-18 15:02:03 发布