I have accidentally committed incorrect files in Git, but have not yet pushed to the server.
How can I erase those commits locally?