This question already has an answer here:
On my Bitbucket Repo, I see this:
I would like to get back to where I was when I made that commit with an arrow pointing to it.
In my commit where I removed AutoMapper, I removed many files and folders and I know want them all back. I want all to be same as before when I made the 44f31d5 commit.
I thought this would be common, so I tried all sorts from posts I found on SO (you can see my attempt) and this didn't work! I got that last commit by doing
git revert HEAD~1
And committing. I was thinking that would revert my last commit, instead I revert the second (if that makes sense).