Undoing more than one commit at once with git revert

You may already know how to use git revert to reverse a single commit, but you can also revert a range of commits with a single command. In this pro tip, you’ll learn how. Reverting one commit You can reverse the changes in a given commit by creating a new commit with git revert , passing the commit hash: 1 git revert c37fb73 The command is straightforward. It works by: Creating the changes that…