The `git log` command will show you a history of your commits, which can be useful for identifying which commit you want to undo.