【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
相关推荐
逛逛GitHub6 小时前
这 6 个 GitHub 项目是刚开源,但是 Star 攀升很快的几个。
github
不老刘9 小时前
Antigravity 的 New Worktree 模式:给 AI 代理一个安全的“平行工位”
人工智能·git·ai编程·antigravity
wflynn9 小时前
GitHub 日榜趋势速报 | 2026-10-29
开源·github
光谱SpectrAI9 小时前
Windows 也中招:Git Bash 和 Node 仍信任泄露的 eMudhra 证书
git
伊布拉西莫9 小时前
GitHub Actions 自动化发布指南
github·devops
YIN_尹10 小时前
【git原理与使用】git初识与安装
大数据·git·elasticsearch
是jin奥10 小时前
Claude Code + GitHub 自动化工作流整理
运维·自动化·github
qianx7712 小时前
KiteNote: 结合MicrosoftToDo和Obsidian优势的日常笔记软件
github
用户4669692569712 小时前
AI编码账单砍60%:这个84K星的小工具,一行命令装好
github
简创AIGC陶先生12 小时前
【直播切片工作台】第22章:素材下载与 URL 重写
github