Last Updated: February 25, 2016
·
556
· rxc178

You've screwed your team by committing, now what?

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.