【问题标题】:facebook application in heroku errorfacebook应用程序在heroku错误中
【发布时间】: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')。”
  • 试过了,但仍然给出相同的信息

标签: facebook git heroku


【解决方案1】:

那是因为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

【讨论】:

  • 嘿西蒙,它再次抛出一条消息:以下未跟踪的工作树文件将被合并覆盖:
  • 您必须先添加并提交您的文件。 - 编辑回复
  • 我在执行拉取操作之前已经添加并提交了还是需要再做一次?
  • 致电git status 并确保您的工作目录清晰
  • Simon, git status 执行并显示修改后的文件夹和未跟踪的文件,并在消息末尾:no changes added to commit
猜你喜欢
  • 2011-12-18
  • 2013-04-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-04-01
  • 2017-01-30
  • 2018-02-17
  • 2014-11-19
相关资源
最近更新 更多