#只对github.com
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080

#取消代理
git config --global --unset http.https://github.com.proxy)

git config --global https.proxy http://127.0.0.1:1080

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

git config --global --unset http.proxy

git config --global --unset https.proxy


npm config delete proxy

由于网站背墙,插件无法安装,此时需要配置一下 http proxy。

打开 Preferences > Package Settings > Package Control > Settings - User 菜单

编辑 Package Control.sublime-settings,添加两行:

"http_proxy": "http://127.0.0.1:1080",
"https_proxy": "http://127.0.0.1:1080",
文章作者: 辣比丶小新
版权声明: 本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Y丶Zon
教程
喜欢就支持一下吧