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

相关推荐
和你看星星14 小时前
Git rerere:让重复冲突只解决一次
git
嘻嘻仙人4 天前
Ubuntu中 git上传自己的项目和二次上传一般流程
git·github
Patrick_Wilson4 天前
Squash Merge 的血缘陷阱:为什么删掉的代码又活了过来
前端·git·程序员
沉浸学习的匿名网友4 天前
什么是 .gitignore?为什么每个 Git 项目几乎都离不开它?
前端·git
深海鱼在掘金5 天前
Git 完全指南 —— 第3章:理解工作区、暂存区、版本库三个核心
git
江华森5 天前
Git 基础筑基:从原理到团队协作的全栈实战
git
JakeJiang6 天前
Git 必备命令指南:从日常高频到项目开发实战
git
叫我少年6 天前
Windows 中安装 git
git
深海鱼在掘金12 天前
Git 完全指南 —— 第1章:Git 概览与版本控制演进
git
noravinsc12 天前
关于Git Flow
git