git push失败的解决办法
设置代理
其中--global可以看需要设置
git config --global http.proxy http://<your_proxy>:<port>
git config --global https.proxy https://<your_proxy>:<port>
比如
git config https.proxy https://127.0.0.1:1087
取消 HTTP 和 HTTPS 代理
git config --global --unset http.proxy
git config --global --unset https.proxy
检查配置是否成功移除
git config --global --get http.proxy
git config --global --get https.proxy
如果是局部仓库代理:
如果你仅在某个特定仓库中配置了代理(而不是全局配置),你需要进入该仓库目录,并使用以下命令移除代理:
git config --unset http.proxy
git config --unset https.proxy