GIT 设置代理

筅森魡賤 提交于 2020-03-25 12:26:34

3 月,跳不动了?>>>

GIT设置代理 全局代理

git config --global http.proxy 'socks5://127.0.0.1:1080
git config --global https.proxy 'socks5://127.0.0.1:1080
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy

还有针对 github.com 的单独配置:

git config --global http.https://github.com.proxy socks5://127.0.0.1:1080 取消github 代理
git config --global --unset http.https://github.com.proxy

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!