# Lesson 3: Branches Branches comes up in almost every real shell project. We start with the why, then write code together. Read the full lesson: [https://glibcode.net/courses/git-github/lessons/3](https://glibcode.net/courses/git-github/lessons/3) ## Files - `commands.sh`: creating, switching and listing branches > **Tip:** `history | grep ssh` finds that command you typed last week. > **Tip:** `set -euo pipefail` at the top of a script stops it at the first error. ## 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 once you've tried.