commit message

The text a person writes into a commit to say what it does and why: a one-line subject, a blank line, then an optional body.

In more detail

The message is the only part of a commit a person writes; everything else Git fills in. The subject is shown in one-line views, so keep it short, imperative and capitalised with no full stop. The body, wrapped near seventy-two columns, explains why the change was made and what alternatives were rejected, which the diff cannot show.

Example

git -C fixture log --grep=Remediates --format='%s'

Related terms

Taught in

References