【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
相关推荐
想用offer打牌6 小时前
一站式讲清Spring AI Alibaba的OverAllState和RunnableConfig
人工智能·架构·github
Kp独立开发9 小时前
开源项目二次开发最佳实践:Fork + 分支隔离与同步
git·开源
逛逛GitHub9 小时前
推荐 5 个小众但有趣的 GitHub 开源项目。
github
极智-9969 小时前
GitHub 热榜项目 · 日榜精选(2026-01-07) | protobuf、web-check、PowerToys等
github·开发工具·开源项目·数据交互·ai框架
Tfly__11 小时前
Ubuntu20.04安装Genesis(最新)
linux·人工智能·pytorch·ubuntu·github·无人机·强化学习
程序员的程12 小时前
我做了一个前端股票行情 SDK:stock-sdk(浏览器和 Node 都能跑)
前端·npm·github
Galaxy~56712 小时前
Git常见命令及用法
大数据·git·elasticsearch
fandroid12 小时前
在GitHub上fork项目后,fork仓库与远程源仓库同步,网页端无法同步时,用命令行强制同步
github
双层吉士憨包13 小时前
掌握Facebook BM 提升广告账户稳定性
github
MindCareers13 小时前
Beta Sprint Day 5-6: Android Development Improvement + UI Fixes
android·c++·git·sql·ui·visual studio·sprint