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