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)或其他一些空白字符。

相关推荐
李永奉1 小时前
Git和GitHub-Git 管理的版本数据到底保存在哪个文件夹里?
git·github
Mortalbreeze1 小时前
Git 基础篇(二):本地仓库管理与常用操作
git
武昌库里写JAVA2 天前
SpringBoot+Vue 项目介绍
java·javascript·git·sql·ai
Hvitur5 天前
Git - 多分支合并
git·github
考虑考虑5 天前
git刷新远程分支列表
git·后端·gitlab
AI大模型-小华5 天前
Codex 自动测试怎么用?从生成测试用例到修复失败用例
git·测试用例·ai编程·软件开发·codex·chatgpt pro·codex cli
七分辣度6 天前
GitHub/Git 常用命令及使用场景
git·github
慧都小项7 天前
MyEclipse Inline Diff 实用指南:逐处核对 AI 修改再提交
git·ai编程·myeclipse·java 代码审查·ai 代码修改
德育处主任7 天前
让 Claude Code 在你睡觉时接着干活:tmux、权限策略与验收清单
git·ai编程·命令行
为思念酝酿的痛9 天前
Git基本操作
git·github