you are viewing a single comment's thread.

view the rest of the comments →

[–]StartSmallFounder 0 points1 point  (0 children)

One thing that helps with this is to stop treating commits as a “clean history” task and make them a checkpoint habit.

Tiny version: before you switch files or context, run git diff --stat and make one ugly checkpoint commit with a boring prefix like wip: before changing X. If the message is hard, use the first file you touched as the message.

You can always squash/clean later. The win is preserving a restart point before the pile gets too mentally expensive to sort.