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

[复制链接]
发表于 2026-4-24 09:25:15 | 显示全部楼层 |阅读模式
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实行如下两条指令
  1. git config --global http.proxy http://127.0.0.1:红框端口号
  2. 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 新手具体教程

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
回复

使用道具 举报

登录后关闭弹窗

登录参与点评抽奖  加入IT实名职场社区
去登录
快速回复 返回顶部 返回列表