【发布时间】:2012-09-29 17:41:18
【问题描述】:
我正在创建一个 facebook 应用程序,并且我是第一次使用这个 Heroku,因为我按照链接 instruction 中提供的程序进行操作。在部署到 Heroku 时,指令的第三步,即将修改后的代码推送到 Heroku,
git push heroku master
它会引发以下错误
To git@heroku.com:xxxxxxxx.git
![rejected] master -> master(non-fast - forward)
error: failed to push some refs to 'git@heroku.com:xxxxxxxxxx.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' sections of 'git push --help' for details.
请给我解决办法!!
【问题讨论】:
-
您是否尝试过消息中的提示? – “在再次推送之前合并远程更改(例如'git pull')。”
-
试过了,但仍然给出相同的信息