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)
Your repository was called "MyFirstRailsApp" but it appears you've deleted it. That's the reason for your error.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.