main git-github/lessons/08-a-tidy-history-with-rebase

README.md

Lesson 8: A tidy history with rebase

A tidy history with rebase comes up in almost every real shell project. We start with the why, then write code together.

Full lesson: https://glibcode.net/courses/git-github/lessons/8

Files

  • commands.sh: interactive rebase to tidy a branch before merging

Tip: set -euo pipefail at the top of a script stops it at the first error.

Run it

# type the commands from commands.sh one by one; don't run it as a script

Exercises

See exercises.md. Ask in the forum once you've tried.