2011-08-05 12 views
0

にGitのプッシュは、私は次のエラーを取得する:ルビー:私はHerokuのにGitのプッシュにしようとすると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'の 'fast-forwards'に関するセクションを見てください。 – Thilo

答えて

3

もう少し詳しくお読みください。 Gitは潜在的に破壊的な行動をとることを妨げています。この質問はRailsやHerokuとはまったく関係ありません。

一般的な情報については、http://git-scm.com/bookを参照してください。分散リポジトリの操作に関する具体的な情報については、this chapterを参照してください。

関連する問題