Let's say I make a number of commits, let's call them 1, 2, 3, 4, 5, and 6 (hashes).
Let's say I'm on a commit with hash 6. All I want to do is to go back to hash 3, make it so the state of my codebase is as it was when I committed to hash 3 as if the other commits never happened.
When I look at answers like this, it seems like everybody has a different answer. reset
, revert
, rebase
? I'm not even sure that I know the difference between those three words in English.
I just want to be at a previous commit. Can someone tell me how to do this?