use git reflog to see SHA-1 of last operations and then do git reset --hard <sha1>.
Git keeps objects (and their SHA-1 respectively) even they go “out of scope” until next git gc invocation. So if you think, you’ve lost something in the project history, use git reflog to see if that smth is there.