This lesson shows why knowing how to undo in git matters. After making and committing changes, if you realize a mistake, you can undo the last commit with 'git reset --soft HEAD~1' which keeps your changes staged for fixing. To discard changes in a file, use 'git checkout HEAD -- file.txt' and 'git reset file.txt' which restores the file to the last committed state. The execution table traces these commands step-by-step, showing how commit history, staged changes, and working directory change. Key moments clarify why '--soft' keeps changes staged and how checkout and reset discard file changes. The quiz tests understanding of commit history state, when the working directory is clean, and which command discards changes fully. This knowledge helps you fix mistakes safely and continue working confidently.