Reputation: 11084
I'm trying to push to heroku, but I recently dropped back a few commits as the production and local code were both flawed. Now I'm getting the error:
Updates were rejected because the tip of your current branch is behind its remote counterpart. Merge the remote changes (e.g. 'git pull') before pushing again.
I don't want to pull from the remote, but rather push the code I have locally.
How can I do that?
Upvotes: 1
Views: 310
Reputation: 11084
I'm an idiot. I went back and read the next line.
If it helps anyone in the future, the answer is to use --force:
git push heroku master -f
Upvotes: 2