If you've ever accidentally committed to a project, not realizing there's some big bug in your code, you might feel like a big ass. We've all been there. Fortunately, Git has come to the rescue. Here are the magic words:
git revert -s <git commit id>
And poof, your screwup is gone and no need to sulk.