【发布时间】:2012-06-09 22:09:56
【问题描述】:
我正在尝试遵循 Michael Hartl 的 Ruby on Rails 教程 http://ruby.railstutorial.org/chapters/beginning#fnref:1.16,但我遇到了一个错误。我在 GitHub 上注册并发布了一个新的 SSH 密钥并创建了一个新的存储库。但是当我尝试将我的存储库推送到 GitHub 时,我收到以下错误:
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
有什么想法吗?
以下是我在终端中输入的一些命令:
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
这是git remote -v 显示的内容:
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)
【问题讨论】:
-
你的存储库是什么?你到底是怎么推的?
git remote -v显示什么?向我们展示您输入的确切命令和生成的确切输出。 -
网络环境怎么样?您是否在公司或大学网络上,因此可能位于代理服务器后面?
-
不,他正在成功联系 github。 “
ERROR: Repository not found”错误来自github。 -
链接已损坏 (404)。
标签: ruby-on-rails git github terminal