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

相关推荐
JackieDYH6 小时前
Git 与 GitHub 新电脑配置指南(从零开始)
git·github·工具·使用教程
Jeanyia16 小时前
GitLab 配套 Git 常用命令
git·gitlab
10mAh20 小时前
【Git】误删分支、reset --hard 后提交丢了怎么办?——reflog、fsck 与安全恢复实战
数据库·git·安全·回归
Lydro21 小时前
CentOS 7 安装高版本git
git·centos 7
guwentian1 天前
Git Worktree 实战:用并行多 Agent 把开发提速 N 倍
大数据·git·elasticsearch·wroktree
不吃鱼的羊1 天前
Git识别未修改的文件有修改
git
蓝黑墨水1 天前
一个git问题的处理
git
互联网中的一颗神经元2 天前
21 — 额外命令:同时开两个窗口、自动检查哨
git
_道隐_2 天前
git stash save 和 git stash push有什么区别?
git
_道隐_2 天前
git stash如何pop指定的stash change?
git