2012-01-23 69 views
0

我設置了對Heroku的遠程訪問,所以我可以使用逗號 git push staging master將我的應用程序部署到Heroku。我不知道是什麼崩潰,但現在當我運行從以前的句子的命令,所以我得到的錯誤:通過Git部署應用程序到Heroku(非快進)

To [email protected]:mystagingapp.git 
! [rejected]  master -> master (non-fast-forward) 
error: failed to push some refs to '[email protected]:staging-app.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. 

我別無所求合併,我想只是delpoy我的應用程序的實際版本從本地主機到Heroku。最簡單的方法是什麼?

非常感謝。

回答

4

如果您確定只是想將您在本地簽到的內容推送到heroku,則可以使用git push -f staging master。這可能會導致從遠程回購中刪除提交,請小心使用它。