突然原本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

然后就可以了:

相关推荐
用户860225046747210 分钟前
从入门到进阶的 React Native 实战指南
android·前端
贵州数擎科技有限公司11 分钟前
雨滴特效的 Three.js 实现
前端·three.js
问心无愧051311 分钟前
ctf show web入门98
android·前端·笔记
irving同学4623811 分钟前
Drizzle ORM + PostgreSQL + Hono 学习笔记
前端·后端
明豆11 分钟前
HTTPS / TLS 1.3 深度解析 — Web 安全传输协议生产实战
前端·安全·https
Linsk12 分钟前
Rollup 官方插件 @rollup/plugin-inject 详解
前端·rollup.js·前端工程化
2601_9584925513 分钟前
Performance Audit of Paper Boats Racing - HTML5 Racing Game
前端·html·html5
浮生望14 分钟前
《JavaScript语言精粹》第3章:对象——JS世界的基石
javascript
irving同学4623815 分钟前
TypeScript 后端入门全景:Hono + Zod + Drizzle + PostgreSQL
前端·后端
一致性15 分钟前
项目总结:桌宠(Desktop Pet)
前端