Git2023-12-18 · 约 1 分钟
Git设置代理 解决开启vpn仍然Github拉取推送超时或失败的问题
一、查看你的梯子中的端口

二、打开Git Bash执行设置命令

三、临时设置(重启会失效)
cmd
export https_proxy=http://127.0.0.1:7897
四、永久设置
cmd
git config --global http.proxy http://127.0.0.1:7897
git config --global https.proxy http://127.0.0.1:7897
五、如果想要解除代理
cmd
git config --global --unset http.proxy
git config --global --unset https.proxy
觉得有用就点个赞吧