Reputation: 11
When I try to git push to heroku I get the following error:
[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.
What should I do?
Upvotes: 0
Views: 302
Reputation: 80041
You should read up on Git a little more. Git is preventing you from taking a potentially destructive action. This question isn't related to Rails or Heroku at all, really.
See http://git-scm.com/book for general git info. See this chapter for information specifically related to working with distributed repositories.
Upvotes: 3