首页 > Web开发 > 详细

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

时间:2019-03-01 19:54:37      阅读:1270      评论:0      收藏:0      [点我收藏+]

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

  

欧克

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

原文:https://www.cnblogs.com/chargeworld/p/10308733.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!