# Lesson 7: Undoing things This lesson covers undoing things. You'll read a short explanation, try three small exercises and finish with a quiz. Read the full lesson: [https://glibcode.net/courses/git-github/lessons/7](https://glibcode.net/courses/git-github/lessons/7) ## Files - `commands.sh`: restore, reset and revert > **Tip:** Quote your variables: `"$file"` survives spaces in names, `$file` doesn't. ## Run it ```sh # type the commands from commands.sh one by one; don't run it as a script ``` ## Exercises See [exercises.md](exercises.md). Ask in the forum after you have tried.