【发布时间】:2012-06-15 20:34:46
【问题描述】:
尝试向 GitHub 添加一个用于 Rails 教程的空白示例应用程序,但我收到此错误(显然很常见,但我在其他帖子中搜索了解决方案,但找不到适合我的解决方案)。
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
当我尝试 rails 教程的建议时,我都得到了错误:
$ git remote add origin git@github.com:<username>/sample_app.git
$ git push -u origin master
然后是我创建的 github 存储库说要尝试的非常相似的提示:
$ git remote add origin https://github.com/<username>/sample_app.git
$ git push -u origin master
我一直在 sample_app 目录中执行此操作,并且在提交之后:
$ git commit -a -m "Improve the README"
(which is the last change I made and the only one before trying to push it to github)
帮助?
【问题讨论】:
-
git status、git log、git remote -v和git branch -avv的输出是什么? -
你定义了你的公钥吗?
标签: git github repository git-push