GitHub ERROR: Repository not found. fatal: The remote end hung up unexpectedly

荒凉一梦 提交于 2019-12-11 11:40:56

问题


I'm trying to follow along Michael Hartl's Ruby on Rails tutorial http://ruby.railstutorial.org/chapters/beginning#fnref:1.16, but I've run across an error. I signed up on GitHub and issued a new SSH key and made a new repository. But when I try to push my repository up to GitHub I get the following error:

ERROR: Repository not found.
fatal: The remote end hung up unexpectedly

Any ideas?

Here are some of the commands I entered into the terminal:

Parkers-MacBook-Pro:.ssh ppreyer$ git remote add origin git@github.com:ppreyer/first_app.git
Parkers-MacBook-Pro:.ssh ppreyer$ git push -u origin master
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly – ppreyer 6 mins ago

And here is what git remote -v shows:

Parkers-MacBook-Pro:.ssh ppreyer$ git remote -v
github    git@github.com:ppreyer/first_app.git (fetch)
github    git@github.com:ppreyer/first_app.git (push)
origin    git@github.com:ppreyer/first_app.git (fetch)
origin    git@github.com:ppreyer/first_app.git (push)

回答1:


Your repository was called "MyFirstRailsApp" but it appears you've deleted it. That's the reason for your error.



来源:https://stackoverflow.com/questions/10904978/github-error-repository-not-found-fatal-the-remote-end-hung-up-unexpectedly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!