0

私は Facebook アプリケーションを作成しており、この Heroku を初めて使用しています。Heroku へのデプロイ中、指示の 3 番目のステップ、つまり変更したコードを 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 に答える