Remote branch ahead of local branch; can't push
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?
One Solution collect form web for “Remote branch ahead of local branch; can't push”
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