1.git bash here
git config --global http.proxy 127.0.0.1:1080为全局的 git 项目都设置代理
git config --local http.proxy 127.0.0.1:1080 为某个 git 项目单独设置代理
2.输入:
git config --global http.proxy
查询到设置了代理,所以我们取消这个代理
git config --global --unset http.proxy
再查询,就没有代理了,然后push就会成功
注:如出现执行命令后依然失败的问题,push期间不要关闭git bash 窗口
若出现 OpenSSL SSL_read: Connection was reset, errno 10054的问题
打开Git命令页面,执行git命令脚本:修改设置,解除ssl验证
git config --global http.sslVerify "false"