fatal: unable to access ‘XXX’: Failed to connect to XXX port 443 after 21075 ms: Couldn’t connect to server
git push推送代码时出现Failed to connect to XXX port 443 after 21075 ms: Couldn’t connect to server
- windows11电脑自动开启了代理
在设置-网络和Internet-代理-使用设置脚本-编辑,查看自动代理的地址
- 将代理地址粘贴到浏览器会自动下载一个proxy.pac的文件,下载打开进行查看
- 给电脑上的gitconfig文件添加http.proxy的代理地址
其它博客说的
git config --global http.proxy http://proxyuser:proxypassword@proxy.server.com:port
git config --global https.proxy https://proxyuser:proxypassword@proxy.server.com:port
,方法试过配置不上,直接进行编辑gitconfig后git push后即可了
后续使用git进行代码推送时出现response 502时记得把gitconfig文件的proxy代理去除才能推送成功