Git reset is the command that allows you to discard or revise commit history within your repository. Whether you’re undoing some changes or re-crafting your commits in a new way, git reset is the appropriate command. We’ll also take a look at several of reset’s command line options and examine how git checkout performs similar functions.