Markdown as the source of truth in Git — PDF on demand built with WeasyPrint
Git as the source of truth for a specification: semantic line breaks for readable diffs, a check proving nothing changed, and WeasyPrint for PDF on demand.
Git as the source of truth for a specification: semantic line breaks for readable diffs, a check proving nothing changed, and WeasyPrint for PDF on demand.
Decide a commit shape by reading the repository history first, then use git reset --soft to re-cut unpushed commits until they match what git log shows.
git rm --cached removes a path from the index, not from past commits. How to measure the difference, and remove a committed build artifact with filter-repo.
Chasing 1.6 MB of PNG blobs in git history found a repo that had never been packed. git gc recovered 8.6 MB; the rewrite I skipped was worth 0.8 MB.
Measuring PNG, JPEG and WebP for article figures, why re-compressing the PNG made it larger, and why converting an image git already tracks reclaims nothing.
Git identity belongs to the directory, not the repo. includeIf gitdir fixes it going forward; git filter-repo --mailmap fixes the commits already pushed.