GitHub pushing/pulling error

后端 未结 1 424
执笔经年
执笔经年 2021-01-22 09:19

I\'m kinda new to GitHub, and I just created my account and set it up, etc. I followed the steps very carefully on http://help.github.com/create-a-repo/ but then when I do the v

相关标签:
1条回答
  • 2021-01-22 09:46

    git will try to contact the remote repo you just declared in the previous line of the GitHub tutorial:

      git remote add origin git@github.com:username/Hello-World.git
       git push -u origin master
    

    As illustrated in:

    • "Why are Github project document page urls case sensitive? What are the negative effects?", and
    • "github http clone returns 'did you run git update-server-info on the server'",

    your error message is likely the result of a:

    • case mistake (git remote add origin git@github.com:username/**h**ello-**w**orld.git)
    • or url error (git remote add origin git@github.com:username/HelloWorld.git, forgot the '-').

    The OP user1302394 confirms, in the comments:

    git remote -v gives me:

    origin git@github.com:username/Helloworld.git (fetch) 
    origin git@github.com:username/Helloworld.git (push)
    

    Which means he/she combined a double whammy:

    • case mistake (world instead of World)
    • and url mistake (Helloworld insteadd of Hello-World)
    0 讨论(0)
提交回复
热议问题