【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
相关推荐
weixin_307779138 小时前
Git中获取一个目录下所有文件的最后修改人的邮箱
开发语言·git·算法
赤生云电竞9 小时前
网吧无盘系统上云:PXE 与云桌面混合部署实践 —— 基于iPXE、iSCSI与NVIDIA vGPU的架构选型
架构·github
爱嘿嘿的小黑9 小时前
用 Google Antigravity 踩遍登录和环境坑后,我开源了个 30 秒只读体检脚本 + Agent Skill
人工智能·python·github
逛逛GitHub9 小时前
7 天 Star 增长超 1000 的新 GitHub 项目,这一波质量很高。
github
CoderYanger10 小时前
Java EE 进阶:16. Spring原理(第一弹)
java·服务器·数据库·后端·spring·java-ee·github
ynchyong13 小时前
Git 急救指南:手滑 add / commit 错了,怎么优雅地撤回
git·手滑
徐小夕15 小时前
JitKnow 5.0发布:让AI知识库变成可组装的知识中台
前端·vue.js·github
钱栈up18 小时前
GitHub 热榜实测|sherlock 环境部署实录
python·开源·github
粥里有勺糖1 天前
视野修炼-技术周刊第139期 | AI 不会让时间变多
前端·github·ai编程
一点一木1 天前
🚀 2026 年 11 月 GitHub 十大热门项目排行榜 🔥
人工智能·github