【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
相关推荐
x66ccff1 小时前
【github】主页显示star和fork
github
sduwcgg3 小时前
git经验
git
麻雀无能为力3 小时前
git的使用
git
臻一4 小时前
关于github使用总结
github
算法歌者6 小时前
Visual Studio 项目 .gitignore 文件指南
git·visual studio
江边垂钓者6 小时前
git cherry-pick和git stash命令详解
git
Lw老王要学习6 小时前
Linux架构篇、第五章git2.49.0部署与使用
linux·运维·git·云计算·it
爱学习的张哥7 小时前
专栏项目框架介绍
git·fpga开发·udp·ddr·gt收发器
Lovely Ruby8 小时前
github 上的 CI/CD 的尝试
ci/cd·github
Aric_Jones9 小时前
lua入门语法,包含安装,注释,变量,循环等
java·开发语言·git·elasticsearch·junit·lua