【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
相关推荐
console.log('npc')37 分钟前
Git版本管控:git reset \+ git push \-f 原理、实操与避坑指南
git
Jurio.2 小时前
开源 Codex Sticky:在终端 Codex CLI 长对话中始终固定底部输入框
linux·rust·github·开源软件·codex·codex cli
半夜修仙3 小时前
RabbitMQ中如何保证消息的可靠性传输
java·分布式·中间件·rabbitmq·github·java-rabbitmq
旅之灵夫4 小时前
【GitHub项目推荐--Harness:一体化的开源 DevOps 平台】⭐
github
恋喵大鲤鱼5 小时前
git reflog
git·git reflog
虾壳云智能6 小时前
详解 OpenClaw 部署难点 绕过安全拦截与路径报错解决方案
人工智能·github·open claw教程·open claw一键部署
_codemonster7 小时前
Codex中github cli未通过身份验证解决方法
github
MatrixOrigin7 小时前
MatrixOne Git4Data 技术详解(二):从零跑通所有 Git 原语
git
anew___7 小时前
常用的 Git 工作流
git
shimly1234567 小时前
git diff 生成一部分文件的补丁
git