按照git官网提示输入
git pushgit remote add origin git@github.com:***3 / elm-1.git -u
链接git远程仓库
出现错误
usage: git remote add [<options>] <name> <url>
-f, --fetch fetch the remote branches
--tags import all tags and associated objects when fetching or do not fetch any tag at all (--no-tags)
-t, --track <branch> branch(es) to track
-m, --master <branch> master branch
--mirror[=<push|fetch>] set up remote as a mirror to push to or fetch from
原因:官网上的有空格

把空格删掉
git pushgit remote add origin git@github.com:***3/elm-1.git -u
欧克
本文解决了一个常见的Git操作错误,即在添加远程仓库时由于命令中的空格导致的问题。通过删除空格,成功链接了GitHub上的远程仓库。
2510

被折叠的 条评论
为什么被折叠?



