I have committed twice and have not pushed yet. How can I undo this like though I didn't do anything. I had always thought that this would reset it:
git checkout master
but that didn't work. I also googled and found this post: Delete commits from a branch in Git
The post says that I can do
git reset --hard HEAD
However, when I do a git status it's still saying I'm behind by 2 commits