小工具知识网

当前位置: 首页 > 行业知识 > clone报错fatal: unable to access ‘https://github.com/...‘: Failed to connect to github.com port

行业知识

clone报错fatal: unable to access ‘https://github.com/...‘: Failed to connect to github.com port

2026-11-15 13:33:14 来源:互联网转载

目录

  • clone报错fatal: unable to access 'https://github.com/...': Failed to connect to github.com port 443 after 21096 ms: Couldn't connect to server
    • clone时报错如下所示
    • 解决方法
      • 第一步、找到本机代理端口号(红框部分)
      • 第二步、修改git端口号
      • 问题解决!
      • 参考资���

        clone报错fatal: unable to access ‘https://github.com/…’: Failed to connect to github.com port 443 after 21096 ms: Couldn’t connect to server

        clone时报错如下所示

        原因是本机代理端口和git端口不一致。

        解决方法

        第一步、找到本机代理端口号(红框部分)

        第二步、修改git端口号

        在git-bash执行如下两条指令

        git config --global http.proxy http://127.0.0.1:红框端口号git config --global https.proxy http://127.0.0.1:红框端口号

        问题解决!

        参考资料

        [1][报错解决] Failed to connect to github.com port 443 after ***** ms: Couldn‘t connect to server

        [2]GitHub 新手详细教程

上一篇:百度视频下载方法指南

下一篇:淘宝购买火花脚本背后的风险警示,揭秘犯罪风险,警醒公众!