committed Reference

February 9, 2026 ยท View on GitHub

Specifying commits

Without any commits specified, committed will detect if something is being piped in on stdin and use that, otherwise it will check HEAD.

Commits

committed HEAD

Commit Ranges

committed master..HEAD
  • The range excludes the start commit
  • This will Do The Right Thing even when master is ahead of when you branched. committed will look for the merge-base between the range end points.

Commit Files and stdin

This is useful for editor integration:

committed --commit-file <path>
# Or for stdin
committed --commit-file -
  • This will not run all verification checks, like looking for merge commits.

Configuration

Sources

Configuration is read from the following (in precedence order)

  • Command line arguments
  • Either
    • File specified via --config PATH
    • <git repo directory>/committed.toml

Config Fields

FieldArgumentFormatDefaultDescription
ignore_author_re-regex(none)Authors to ignore the commits for. Generally used with bots out of your control.
allowed_author_re-regex(none)Require commit author to match this regular expression. Note that this is only checked when operating on commits, and not on commit files/stdin.
subject_length-number50Number of columns the subject can occupy
line_length-number72Number of columns any line with a break can occupy, including subject
hard_line_length-number0 (none)Max number of columns any line can occupy
subject_capitalized-booltrueWhether the subject is required to be capitalized
subject_not_punctuated-booltruePrevent the subject from ending in punctuation
imperative_subject-booltrueRequire the subject to start with an imperative verb
no_fixup--no-fixupbooltrueDisallow fixup commits
no_wip--no-wipbooltrueDisallow WIP commits
style-none, conventionalnoneCommit style convention
allowed_types-list of stringsfix, feat, chore, docs, style, refactor, perf, test(Conventional) Accepted commit types
allowed_scopes-list of stringsnone (all scopes allowed)(Conventional) Accepted commit scopes
merge_commit--no-merge-commitbooltrueDisallow merge commits. Recommended to use argument over config since merge-commits are sometimes wanted.