Field note · November 6, 2026
The gh-pages branch holds exactly one build
Deploys force-push an orphan commit to gh-pages. No history, one build.
Deploys force-push an orphan commit to gh-pages. No history, one build.
The reason is the datasets. Five megabytes of generated CSV per build, rebuilt daily by the cron — a year of that in git history is a repository nobody wants to clone.
cd dist
git init -q -b gh-pages
git add -A && git commit -q -m "Build"
git push --force origin gh-pagesThe cost is that the deployed branch has no history. No git log on the published site, no diffing yesterday's HTML against today's, no reverting a deploy by checking out the previous commit — a rollback means rebuilding from the source commit you want.
That is an acceptable trade because the source branch has all the history and every build is reproducible from a commit. The thing it costs, and this is worth knowing before copying the approach, is that you cannot answer "what exactly was live last Tuesday" from the deploy branch. You answer it from the source, by rebuilding.
Generated output does not belong in version control, and when it has to be, it does not need a past.