【git】问题解决---Failed to connect to github.com

场景

最近运行命令git push,git pull或者git clone的时候总会报如下错误

bash 复制代码
fatal: unable to access 'https://github.com/xxxxx/xxxxxx.git/': **Failed to connect to github.com** port 443 after 21052 ms: Couldn't connect to server

原因

一般是网络配置原因造成的, 如果能正常进github网页,考虑代理配置原因。

解决方法

通过以下命令从 Git 配置中移除全局代理设置

bash 复制代码
git config --global --unset https.proxy
git config --global --unset http.proxy
相关推荐
蓝色空白的博客1 小时前
Git代码下拉更新推送操作用法整理
git
风也温柔☆3 小时前
IDEA/WebStorm 切换分支(超简单)
git·intellij-idea·webstorm·切换分支·checkout
CoderJia程序员甲9 小时前
GitHub 热榜项目 - 日榜(2025-10-11)
ai·开源·github·ai编程·github热榜
CoderJia程序员甲12 小时前
GitHub 热榜项目 - 日榜(2025-10-14)
ai·开源·大模型·github·ai教程
Jammingpro14 小时前
【Git版本控制】Git初识、安装、仓库初始化与仓库配置(含git init、git config与配置无法取消问题)
java·git·elasticsearch
逛逛GitHub15 小时前
又发现 4 个有趣的 GitHub 开源 MCP。
github
whysqwhw15 小时前
KuiklyUI Core 关键技术点与架构设计分析
github
whysqwhw15 小时前
KuiklyUI Core模块代码架构设计全面分析
github
运营猫小海豚17 小时前
低代码+强推理:开源工具链如何让企业项目管理效率翻倍
github
MicrosoftReactor18 小时前
技术速递|使用 GitHub Copilot Agent 模式现代化 Java 项目的分步指南
java·github·copilot