2011-08-05 49 views
0

當我嘗試混帳推到Heroku的,我得到以下錯誤:Ruby on Rails的:混帳推到Heroku的

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

我該怎麼辦?

+4

看看'git push --help'的'快速前進'部分? – Thilo

回答

3

你應該多讀一點Git。 Git阻止你採取潛在的破壞行爲。這個問題與Rails或Heroku完全沒有關係。

請參閱http://git-scm.com/book瞭解一般git信息。有關使用分佈式存儲庫的信息,請參見this chapter

相關問題