Mac 代理
解除SSL certificate
git config --global http.sslVerify false
Npm
npm config set proxyhttp://userid:xxx@proxyURI
npm config set https-proxyhttp://userid:xxx@proxyURI
npm config set registryhttps://registry.npmjs.org/
npm config set rejectUnauthorized false
npm config set strict-ssl false
带账号 代理
npm config set proxyhttp://userid:123456@proxyURI
npm config set https-proxyhttp://userid:123456@proxyURI
npm config set registryhttps://registry.npmjs.org/
npm config set rejectUnauthorized false
npm config set strict-ssl false
Yarn
1, 通过如下命令设置 yarn 的代理
yarn config set proxyhttp://userid:123456@proxyURI
yarn config set https-proxyhttp://userid:123456@proxyURI
yarn config set registryhttps://registry.yarnpkg.com/
yarn config set strict-ssl false
Npm删除代理
npm config delete proxy
npm config delete https-proxy
yarn删除代理
yarn config delete proxy
yarn config delete https-proxy
Git
git config --global http.proxy "http://proxyURI"
删除 git 代理
git config --global --unset http.proxy
proxyURI 是组织或公司提供的对应URL
删除远程master 分支tag
git push --delete origin tagname