Execute:
git reset HEAD~
The last commit returns to the staging area and executes:
git checkout .
All changes in the file will be undone.
If you want to undo previous submissions, such as the first two, you can:
git reset HEAD~2