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