git reset –hard HEAD~1
For lots more analysis and options:
http://stackoverflow.com/questions/927358/how-to-undo-the-last-git-commit
For lots more on undoing git changes – e.g. amending a commit message see:
https://blog.github.com/2015-06-08-how-to-undo-almost-anything-with-git/