为git 设置和取消代理

1,638 阅读1分钟

用了蓝灯以后git 访问不了了,这时候需要为git 设置代理

命令 git config --local http.proxy 127.0.0.1:49339

#只针对github使用代理 git config --global http.github.com.proxy 127.0.0.1:49339 git config --global https.github.com.proxy 127.0.0.1:49339

端口号需要查看自己的蓝灯

取消

git config --global --unset http.proxy git config --global --unset https.proxy