Failed to connect to github.com port 443 after 21055 ms: Timed out

目前自己使用了*还是会报这样的错误,连接不到的github。

查了一下原因:

是因为这个请求没有走代理。

解决方案:

设置 -> 网络和Internet -> 代理 -> 编辑

记住这个IP和端口

使用以下命令:

java 复制代码
git config --global http.proxy http://127.0.0.1:10809

git config --global https.proxy http://127.0.0.1:10809

问题得到解决!!!

可以使用一下命令取消代理:

java 复制代码
取消全局代理:
git config --global --unset http.proxy
 
git config --global --unset https.proxy
相关推荐
别动我齐刘海18 小时前
ROS2 Jazzy + C++ 实战路线——ros2_control
c++·人工智能·python·opencv·机器学习·机器人·github
怕浪猫18 小时前
ZCode 开源了来看看这是个什么东西
node.js·github·代码规范
demo007x19 小时前
我用 AI 做了一个跨平台的PopClip:拾趣Magpie
程序员·github·ai编程
miofly19 小时前
GitHub 日榜趋势速报 | 2026-09-22
开源·github
我命由我123451 天前
Git 推送报错:error: src refspec main does not match any
运维·git·gitee·github·运维开发·学习方法·版本控制
阿里嘎多学长1 天前
2026-09-20 GitHub 热点项目精选
开发语言·程序员·github·代码托管
峰向AI1 天前
skill-up: [阿里开源] 让 AI Agent Skills 自己进化的评估工具
github
子林super2 天前
顺序表用Python3定义与增删改查
github
子林super2 天前
Python非空判断与类型检查写法
github
子林super2 天前
Python list与array关键区别及使用场景
github