News for hackers. Stuff that matters.
Re:When to make a Git Commit by jasode on Friday January 13, 2017 @02:42PM (#13394047)
The author is giving out bad advice that's not relevant to Git's mental model. He's using the CVS/SVN old mental model that treated commits as A Really Big Deal instead of embracing Git's new way where commits are merely a savepoint.

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.

Re:When to make a Git Commit by WorldMaker on Friday January 13, 2017 @02:54PM (#13394151)
Or don't rebase and teach people to use tools like `--first-parent` and learn to love the DAG. Git log doesn't have to be a perfectionist's straight line.