0

我正在创建一个 facebook 应用程序,并且我是第一次使用这个 Heroku,因为我按照链接说明中提供的程序进行操作。在部署到 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.

请给我解决办法!!

4

1 回答 1

0

那是因为git。如果您的语言环境版本已过时,则无法推送到服务器。

最简单的方法是先拉:

git add -A
git commit -m "add my locale files"
git pull heroku master
# All goes well or you have a merge conflict (if so, you resolve conflicts). Then:
git push heroku
于 2012-09-29T17:48:06.273 回答