git remote报错解决办法

现象:

cuiwe@cuiwenqi MINGW64 /e/lattice_prj/lattice_sim (master)

$ git remote add origin git@gitee.com:cuiwenqicn/lattice_mipi_csi_sim_demo.git

usage: git remote add []

复制代码
-f, --[no-]fetch      fetch the remote branches
--[no-]tags           import all tags and associated objects when fetching
                      or do not fetch any tag at all (--no-tags)
-t, --[no-]track <branch>
                      branch(es) to track
-m, --[no-]master <branch>
                      master branch
--[no-]mirror[=(push|fetch)]
                      set up remote as a mirror to push to or fetch from

原因 : origin后面的空格有问题,发生错误是因为在命令的origin后面有一个不可见的(或容易错过的)非中断空格(U+00A0)或其他一些空白字符。

相关推荐
whale fall2 小时前
git add、git commit、git push 的区别和联系
git
倾云鹤2 小时前
Git同时推送多个远程仓库
git
sdm0704277 小时前
基础开发工具git,gdb
git
胡琦博客9 小时前
如何同步远程分支到本地(远程有些分支已经删除了)
git
AI成长日志12 小时前
【实用工具教程】Git进阶:分支策略与合并冲突解决
git
ruanCat13 小时前
加了 .gitattributes 就万事大吉?我差点毁了整个团队的 Git 工作流
git
咋吃都不胖lyh13 小时前
查看 Git 本地仓库关联的远程仓库链接(URL)
git
wheelmouse778813 小时前
AI 时代的 Git 进阶术:如何优雅地让多个 Agent 并行开发
人工智能·git·ai编程
如意.7591 天前
【Linux开发工具实战】Git、GDB与CGDB从入门到精通
linux·运维·git
用户9186861286871 天前
Git 版本控制完全指南:从入门到精通
git