BC’s Git Style Guide

Cruddy Commit Messages

1) Begin each commit message with one of three CRUD-oriented commit directives:

2) Use CREATE, UPDATE, and DELETE for both files and file content.

3) For files, CREATE, UPDATE, and DELETE mean the following:

4) For file content, CREATE, UPDATE, and DELETE mean the following:

5) Follow each commit directive with a list of commit items to which the directive applies.

6) Small additions to file content may be listed as UPDATE commit items only if the additions relate directly to modifications.

7) If a commit directive applies to both files and file content, list the word files first. Examples:

8) Explanations and clarifications for commit items are optional.

9) When included, an explanation or clarification should (1) appear in parentheses, (2) relate only to the immediately preceding commit item, and (3) consist of only a descriptive word or phrase. Examples:

10) Include file descriptions (or file names—see below) only in parentheses. Examples:

11) List multiple commit directives within a single commit message in the following order:

  1. CREATE
  2. UPDATE
  3. DELETE

12) Separate multiple directives within a single commit message with semicolons. Example:

13) Use double quotes to enclose commit messages on the command line.

14) Use single quotes within commit messages to indicate exact names. Examples:

15) Do not end commit messages with a period or any other punctuation mark.

16) Limit commit messages to fewer than 50 words.