【发布时间】:2012-04-19 10:48:44
【问题描述】:
我仍在阅读一些关于 RoR 的指南,我被困在这里 Deploying The Demo App
我遵循了指示:
随着Microposts资源的完成,现在是把仓库推送到GitHub的好时机:
$ git add . $ git commit -a -m "Done with the demo app" $ git push
这里发生的错误是推送部分..它输出了这个:
$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using
git remote add <name> <url>
git push <name>
所以我尝试按照说明执行以下命令:
$ git remote add demo_app 'www.github.com/levelone/demo_app'
fatal: remote demo_app already exists.
所以我推:
$ git push demo_app
fatal: 'www.github.com/levelone/demo_app' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
我可以在这里做什么?任何帮助将不胜感激。
【问题讨论】:
-
@meagar 抱歉,看来我只是覆盖了您的编辑;)
-
抱歉@meagar 我还是新手,必须习惯编辑器中的降价。
-
我最初选择的答案有问题吗?
-
非常好的问题。大多数教程似乎缺少一两个步骤,因此无法推送您的更改。