Commit message structure

  • Subject: imperative, 50 chars max — what changed
  • Body: (optional) blank line, then WHY — not HOW
  • Footer: Closes #N, Fixes #N, Co-authored-by: Name <email>
  • Blank line is required between subject and body
  • The diff shows HOW — the body should explain context and motivation

Question 0 of 5

The Git commit subject line recommendation is to keep it under 50 characters. Why?