Use the command
git reset --hard HEAD~1
Careful though, this will delete the commit, so you'll lose those changes.
The argument HEAD~1 acutally shifts your HEAD reference back to the previous commit. So the latest commit will be gone.
HEAD~1