2

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 very last command ($ git push -u origin master) it says:

ERROR: Repository not found.

fatal: The remote end hung up unexpectedly

I have made the Repository, and it matches the name, but I still can't seem to get it to work. Any suggestions?

nasonfish
  • 455
  • 1
  • 4
  • 14

1 Answers1

2

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:

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)
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250