An easy way i use to step backwards in a number of steps is git checkout HEAD~[number]
If i want to go back for 3 steps, you'll write git checkout HEAD~3
if you ignore the number then git will assume it's 1 step
Of course you can always just take the hash and checkout to that hash
git checkout ABC123
Note that you will become in a detached head state, meaning there's no branch pointing to this hash, so you either git reset
to drop all the other changes and make this commit your latest, or git branch
to create a new branch name to make sure your commits don't become unreachable.