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?

2
  • 1
    What output does git remote -v give? Commented Mar 30, 2012 at 5:56
  • git remote -v gives me: origin [email protected]:username/Helloworld.git (fetch) origin [email protected]:username/Helloworld.git (push) Commented Mar 30, 2012 at 6:08

1 Answer 1

2

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

 git remote add origin [email protected]: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 [email protected]:username/**h**ello-**w**orld.git)
  • or url error (git remote add origin [email protected]:username/HelloWorld.git, forgot the '-').

The OP user1302394 confirms, in the comments:

git remote -v gives me:

origin [email protected]:username/Helloworld.git (fetch) origin [email protected]: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)
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks so much for the help, I had made a mistake in the Repo name. Thanks for helping.
@user1302394 ok. I have edited my answer to make your findings more visible.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.