fatal: unable to access ‘XXX‘: Failed to connect to XXX port 443 after 21075 ms: Couldn‘t connect to
fatal: unable to access 'XXX': Failed to connect to XXX port 443 after 21075 ms: Couldn't connect to server
·
1、fatal: unable to access ‘XXX’: Failed to connect to XXX port 443 after 21075 ms: Couldn’t connect to server
2、fatal: unable to access ‘https://github.com/dlzmoe/hexo-simple9.git/’: Received HTTP code 502 from proxy after CONNECT
1、2两种情况可能的处理方式
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后即可了


fatal: unable to access ‘https://github.com/dlzmoe/hexo-simple9.git/’: Received HTTP code 502 from proxy after CONNECT 处理:
后续使用git进行代码推送时出现response 502时记得把gitconfig文件的proxy代理去除才能推送成功
更多推荐




所有评论(0)