Hacker News new | ask | show | jobs
by foobarbaz33 494 days ago
> I find it hard to judge when things are in a good enough state to commit

Work in a feature branch. Commit often. Squash away the junk commits at the end.

> ...and especially good enough to have a title.

Who needs a title? It's perfectly fine to rapid-fire commits with no comment, to create quick save points as you work. Bind to a key in your editor.

I treat commits in a private branch the same as the undo log of the text editor. No one cares about the undo log of your editor as they never see it. The same should be true of your private feature branch commits. They are squashed away never to be seen by human eyes again.

1 comments

If I had 5 cents for every commit in a feature branch with the commit message "wip"...
You should have 0 cents. Squash and chill is the way to go.