When to make a Git Commit
dev.to
dev.to
Instead, commit to your local private repo whenever you want. Whatever spurious commit you want to make, just do it without thinking. (E.g. "WIP stopping temporarily to go get a soda"). Then use rebase if you want to clean things up.
EDIT ADD: reading the essay again, the author may be restricting his advice to commits on public master. If so, the blog's title should make that distinction prominent because that drastically changes what the "when" in "when to commit" means.
You can always rebase before pushing upstream.