Say I have a commit history that looks like this:
A <- B <- C
I am currently on C. I hate both my commits B and C and I want to get back to A with a clean staging and no changes.. I want the state of A. How do I do this in the most efficient way. I am currently doing this:
git revert --no-commit B
git revert --no-commit A
git checkout .
This also makes it so there is no revert commit/no new commit showing my revert. Say I want this. What do I do?
Is there a better way?