concept commit message in category git

This is an excerpt from Manning's book Git in Practice.
You may already have a sense for the fact that how useful the history is relies a great deal on the quality of the data entered into it. If I made a commit once per year with huge numbers of changes and a commit message of “fixes,” it would be fairly hard to use the history effectively. Ideally, commits are small and well-described; follow these two rules, and having a complete history becomes a very useful tool.
--grep specifies a regular expression that matches the contents of the commit message. file\. was used rather than file. to escape the . character.
is the first line of the commit message prefixed with [PATCH]. This is another reason to structure your commit messages like emails (as mentioned in technique 4). If there’s more than one line in a commit message, the other lines are shown as the message body. Remember, if you use the --patch (or -p) argument, then the git log output will also include the changes made in the commit. With this argument provided, each outputted git log entry will contain the commit and all the metadata necessary to convert it to or from an email.
Listing 12.1. Good commit message format
Commits: first line is a summary (<51 characters). Commit messages should be structured like emails. The first line (the commit subject) should be treated like the subject of an email. It should make a brief summary that is elaborated on in the rest of the commit message. It should have 50 characters or fewer and always be separated by a new line from the rest of the commit message body. Without this new line, various output formats that try to display only the first line of the commit may get confused. The commit's message body can be split into multiple paragraphs which should be wrapped at 72 characters or fewer. The wrapping is done to ensure the output of tools like `git log` remains readable even when it adds indentation for diffs. Otherwise the commit message has no other limits on length; it should be as long as it needs to be to fully explain the commit. While the subject might describe what the commit does, the body should expand on why the change was made. It should also use the present tense to match the tense used by commit messages generated by commands such as git merge. If you're using GitHub (and some other tools) then the contents of commit messages can contain Markdown. You may use Markdown to add some formatting that looks good in ASCII or rendered such as using **bold**, _italics_, ~~strikethrough~~, `monospace` or lists bulleted with a `*` or numbered with, for example `1.`. You shouldn't go overboard with this but it can add some useful, basic formatting.