I have a small demonstation application which I am running on Heroku's free service.
It was all working, and I made some changes, deleting unneeded files and tidying everything up, but something I did messed up everything on Heroku, as it wasn't serving static files after that. I tried numerous things to fix it, but I can't get them to work.
So I have now gone back to the last working state, using the following on my laptop:
git reset --hard <commit-id>
I managed to push this to Heroku with :
git push heroku --force
And now it is working.
My problem is, that I want to reset my master branch to this state, and start removing files (more carefully this time). When I try to commit the changes, then push it gave me an error:
rejected non-fastforward
What do I need to do to make this previous commit the most up to date one? (Git terminology would be appreciated, as I am sure there is a name for this but I don't know it).