From Git documentation:
-m <msg>
--message=<msg>
Use the given <msg> as the commit message. If multiple-m
options are given, their values are concatenated as separate paragraphs.
So, if you are looking for grouping multiple commit messages this should do the work:
git commit -m "commit message1" -m "commit message2"