How it works...

The git revert command applies the anti-patch of the commit in question to the current HEAD pointer. It will generate a new commit with the anti-patch and a commit message that describes the reverted commit(s).

Get Git Version Control Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.