usage: git remote add [] -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 

  

欧克


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM