How to fill in the description field when executing git commit?

The github app for mac has a summary and description field that you can populate with each commit. I know that the summary field matches the -m option on the command line, but what about the description field, how can I do this part on the command line?

+3
source share
1 answer

The summary + description format in Git means that this convention is (good):

  • Summary should be no more than 70 characters
  • The following additional description may follow an empty line after a summary.

The command line is equivalent to entering a "brief" as a summary and "do this and what" as a description:

git commit -m 'brief summary

doing this and that'

Or on one line in bash:

git commit -m 'brief summary'$'\n\n''doing this and that' 
+3
source

All Articles