git log
git commit --amend -m "New Commit Message"
You can also add some files before, in case you forgot: git add <MissingFile>
.
git reset --soft HEAD^
This command will return a commit in your repository, but modified files will still be in your directory.
You can use git reset --hard HEAD^
if you want to Throw Away both the commit and files/modifications.