This document discusses two methods for reverting commits in Git: reverting and resetting. It explains that reverting uses a new commit to undo the changes from the previous commit, which is suitable when working on shared branches with a team. Resetting deletes and resets the head pointer to remove the commit from history, using git reset and git push -f, which is suitable for mistakes on private branches that don't impact others. The key is to use reverts for shared code and resets cautiously for only private branches.