我試圖在heroku中更新我的第一個node.js應用程序時遇到此問題。將應用推送到heroku時,如何解決非快進更新錯誤?
該應用程序的初始版本部署成功,但現在當我嘗試部署修改的應用程序時,它給我帶來一些問題。這裏是命令和輸出
> git push heroku master
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to '[email protected]:....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.
的git的狀態命令顯示的以下內容:
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
可能的重複[使用git部署到heroku不斷被拒絕,因爲快進](http://stackoverflow.com/questions/6901446/deploying-to-heroku-with-git-keeps-getting-rejected-due -to-快進?RQ = 1)。 – 2013-07-12 13:16:10
[Git non-fast-forward rejected]可能的重複(http://stackoverflow.com/questions/5667476/git-non-fast-forward-rejected) – 2013-07-12 13:17:09