I find that the command "git add -p", which allows you to add individual sections of files rather than whole files before committing, helps with this issue.
It's quite natural to wind up with a bunch of work that really needs to be in multiple commits. I don't think this ever changes for most of us.
That’s basically what I do, I just end up doing it in large spurts. I typically use the cli for most things but I like the GitHub app for picking out changes for a particular commit.
It's quite natural to wind up with a bunch of work that really needs to be in multiple commits. I don't think this ever changes for most of us.