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
pFWa9e0.md.png

  1. windows11电脑自动开启了代理
    在设置-网络和Internet-代理-使用设置脚本-编辑,查看自动代理的地址
    pFWaFFU.md.png
  2. 将代理地址粘贴到浏览器会自动下载一个proxy.pac的文件,下载打开进行查看
    pFWaZl9.md.png
  3. 给电脑上的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代理去除才能推送成功
    在这里插入图片描述
Logo

一站式 AI 云服务平台

更多推荐