【问题标题】:GitHub ERROR: Repository not found. fatal: The remote end hung up unexpectedlyGitHub 错误:未找到存储库。致命:远端意外挂断
【发布时间】: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


【解决方案1】:

您的存储库名为“MyFirstRailsApp”,但您似乎已将其删除。这就是你的错误的原因。

【讨论】:

  • 但后来我把它改成了first_app。我该怎么做才能让它发挥作用?
  • Github 说:“ppreyer 还没有任何公共存储库。”你可能认为你在 github 上重命名了它,但你删除了它。存储库必须存在于 github 上,然后才能推送到它。在 github 上创建一个新的“first_app”存储库。
猜你喜欢
  • 2012-09-27
  • 2012-06-10
  • 1970-01-01
  • 2013-02-04
  • 2011-10-12
  • 2013-02-12
  • 1970-01-01
  • 1970-01-01
  • 2019-01-01
相关资源
最近更新 更多