git Failed to connect to 你的网址 port 8282: Timed out

git Failed to connect to 你的网址 port 8282: Timed out

出现这个问题的原因是:原来的仓库换了网址,原版网址不可用了。
解决方法如下:
方法一:查看git用户配置是否有如下配置

复制代码
http.proxy=http://xxx
https.proxy=http://xxx

如果有的话,先删除,没有则跳过这一步

复制代码
git config --global --unset http.proxy
git config --global --unset https.proxy

之后找到git仓库的地址,进行下列git配置,也就是http、https的代理

复制代码
git config --global http.proxy http://xxx
git config --global https.proxy http://xxx

重新查看自己的git用户配置,看下刚刚的操作是否成功

复制代码
git config --global -l

方法二:进入你本来放在本地的仓库地址

这个文件很容易找吧,进入这个文件的**.git\config** 长下面这样;打开这个config文件

更改下面的url为你现在仓库的网址http://10.xxxx//xxx/xxx.git 即可。

相关推荐
米小虾2 分钟前
hackerbot-claw 攻击事件深度解析:AI Agent 时代的安全警钟
github·ai编程
逛逛GitHub1 小时前
AI 搜索利器 MiroThinker 发布新模型!我接入小龙虾,太实用了。
github
happyprince2 小时前
2026年03月18日热门Model/github项目
github
小霍同学2 小时前
Git 常用指令汇总
git
无限进步_3 小时前
深入解析list:一个完整的C++双向链表实现
开发语言·c++·git·链表·github·list·visual studio
AI成长日志3 小时前
【datawhale】hello agents开源课程第1章学习记录:初识智能体
学习·开源·github
Awna3 小时前
Git 合并多次提交记录实战
git
爆打维c3 小时前
Github配置SSH Key(新手友好版)
ssh·github
火车叼位5 小时前
一次看懂 Git 仓库分叉、冲突已解决但仍在合并中的状态
git
老虎06275 小时前
Netty[ NIO 核心速成 ] ---- NIO三大组件(Channel & Buffer&selector)
java·github·nio