# Lesson 2: Your first commit This lesson covers your first commit. 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/2](https://glibcode.net/courses/git-github/lessons/2) ## Files - `commands.sh`: init, add and commit > **Tip:** `set -euo pipefail` at the top of a script stops it at the first error. > **Tip:** `history | grep ssh` finds that command you typed last week. > **Tip:** `man` pages are long; `tldr ` gives you the common cases. ## 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.