【发布时间】:2012-09-07 02:36:10
【问题描述】:
我在尝试推送到 Heroku 后收到此错误消息(复制如下)。我最初设置了一个 facebook 画布应用程序并选择了 heroku 选项上的托管。它给了我一个 heroku url,我在我的机器上开发的应用程序中添加了它作为遥控器
heroku git:remote -a desolate-springs-1684
但是当我推送时,我得到了这个错误
error: failed to push some refs to 'git@heroku.com:desolate-springs-1684.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
localhost:nhl michaelmitchell$
原来如此
git push -f heroku master
但现在我显然必须执行“git pull”。但是,我在“git pull”之后放了什么? heroku 网址的名称?或者是其他东西?
【问题讨论】:
标签: ruby-on-rails git heroku github