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版本控制
git
遇见火星2 小时前
Git 入门指南:从零开始掌握版本控制的魔法
git·版本控制
星际编程喵3 小时前
研发流程规范:Git Commit 书写标准
git·gitee·github·gitcode
to future_5 小时前
git超详细教程
git
GL_Rain5 小时前
pip安装git库出现ModuleNotFoundError: No module named ‘xxx‘
git·pip
大白要努力!8 小时前
Android 项目历史提交远程仓库资源过大,如何清理历史提交中无用的大文件
android·git
一点事8 小时前
git:已有主分支,创建空分支,管理项目
git
指尖跳动的光8 小时前
git 提交报 Updates were rejected because the tip of your current branch is behind
git
痕忆丶9 小时前
Git_Rebase_Conflict_Resolution
大数据·git
啃火龙果的兔子10 小时前
vscode中的git插件
git·vscode·elasticsearch