My preferred routine is to stage and commit my changed files all at once:
git commit -a
# enter commit message via editor
This works great when all of my changes are related to each other. However, when there are several unrelated changes (i.e. I forgot to make commits for each one), it makes for a lengthy commit message. In these cases, I'd rather have an individual commit message for each file, or even a separate commit message per change when there are multiple unrelated changes within a file. How can I do that?
Note: Difference between this and How do I commit only some files?
My question is different because it also addresses multiple commits within a file.