I won’t lie, I keep using commits as the equivalent to saving, and hence have many commits on my GitHub Profile (2,000 in the last year - many for me, I guess some have much more). At some point I got addicted to the number, so from time to time I try to manually increase my frequency of commits. All that said, I end up doing more commits when working on front end stuff, when I doing back end programming, I am not at…
You can commit every single character if you in the mood. At the end, when your new feature is complete, you just squash all commits in this branch to one single commit ("add feature xyz") and merge/rebase it to your main dev branch.
Now it is really easy to identify the actual code behind a new feature.