usage: git remote add [<options>] <name> <url> -f, --fetch fetch the remote branches --tags import all tags and associated objects when fetching

按照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 

  

欧克

posted @ 2019-03-01 18:53  知一以天  阅读(8238)  评论(0编辑  收藏  举报