Git

Clean history

Keeping a clean history help take mental shortcuts. Reduces complexity.

Commit size : the smallest stable deliverable iteration possible

Helps with readability, bisect debugging, can ship to production whenever. Feature toggles help with the "deliverable" part.

Per commit automated code review

A proof of concept git history linter https://github.com/hvihvi/glnt (opens in a new tab)

Reminders

grep in diffs btween 2 commits:

tig -S"track(" HEAD~500..HEAD
CC BY-NC 4.0 2024 © Shu Ding.