突然原本git链接仓库失败问题排查,竟然是少了.git

正常的git仓库远程地址后面都是跟有.git的,请记住,但是突然不知道什么时候,我的仓库后面少了.git这个。所以就一直报错连不上:

vbnet 复制代码
fatal: unable to access 'http://mxxxxxxxxxxx.cn:9999/mgnt-sys/frontmgntminiapp/': Failed to connect to xxxxxxxxx port 80 after 25 ms: Couldn't connect to server

出错的git远程地址:后面少了.git

需要重新设置远程地址,并且加上.git:

arduino 复制代码
git remote set-url origin 新的仓库地址

例如新地址:

arduino 复制代码
git remote set-url origin http://mxxxxxxxx.cn:9999/mgnt-sys/frontgamepad.git

然后就可以了:

相关推荐
wenzhangli71 小时前
Ooder A2UI 核心架构深度解析:WEB 拦截层的设计与实现
前端·架构
前端百草阁1 小时前
【前端性能优化全链路指南】从开发编写到构建运行的多维度实践
前端·性能优化
神探小白牙2 小时前
eCharts 多系列柱状图增加背景图
javascript·ecmascript·echarts
女生也可以敲代码2 小时前
AI时代下的50道前端开发面试题:从基础到大模型应用
前端·面试
ZhengEnCi2 小时前
M5-markconv自定义CSS样式指南 📝
前端·css·python
IT_陈寒2 小时前
SpringBoot自动配置的坑差点让我加班到天亮
前端·人工智能·后端
xingpanvip2 小时前
星盘接口开发文档:星相日历接口指南
android·开发语言·前端·css·php·lua
@PHARAOH2 小时前
WHAT - GitLens supercharged 插件
前端
TT模板3 小时前
苹果cms整合西瓜播放器XGplayer插件支持跳过片头尾
前端·html5
Wect3 小时前
React 性能优化精讲
前端·react.js·性能优化