git reset to old commit and push without force push
The first thing i tried was naming individual commits, in order, but that caused a conflict somehow. I did newest first but maybe the revert command somehow expects latest first? Anyway what did work is naming a range and that is easier anyhow!
- git reset to old commit and push without force push
- git revert to specific commit and and make new commit at that state
The first search did not work but the second one gave the answer that worked for me.
Courtesy of the command:
git revert --no-commit fb33c7e..HEAD
git commit
For the commit message i wrote “Revert all media-related commits so we can use image to media module” and then credited this command, so it is clear to people what i did.