Follow

My current article series is based around writing an example application. As an experiment, I’m writing most of the draft in ~250-word commit messages in the example repository (github.com/jeffkreeftmeijer/ha).

To get a very rough outline for the first article, I printed the commit message bodies to a markdown file in reverse.

$ git log --reverse --pretty=format:%b > draft.md

The outline was a good starting point to write the story. It felt more efficient, as the work was split between prototyping and explaining code, and writing and editing an article. Plus, the example repository now has well-groomed commits and good explanations of all changes. 🙌

$ git log master..part-2 --reverse --pretty=format:%b | wc
291 1465 9982

The almost-finished outline for part two is now close 1500 words in git commit messages. 😅

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!