Skip to main content

Configuration

Configuration

Advanced

Configure commit templates, message backups, version files, staging, and validation defaults.

Commandcusty commit

Category

Git Operations

Quick Command

custy commit [OPTIONS]

configurationTOMLteam defaults

Overview​

The direct command resolves values from .config/custy/config.toml when a CLI override is absent.


Configuration Groups

Commit Profile Configuration

PropertyTypeDescriptionDefaultRequired
[tool.custy.cli.templates.file]commit_messageSelect the commit-message template used by the profile.-No
[tool.custy.cli.templates.directory]backups_commitSelect the directory used for retained commit-message backups.-No
[tool.custy.cli.paths]version_fileSelect the project file that receives the resolved version.-No
[tool.custy.cli.versioning]strategySet the default strategy used while preparing versioned artifacts.-No
[tool.custy.cli.execution]staging and validationConfigure auto_stage, stage_mode, force_commit, and the backward-compatible check_cz override.-No
[tool.custy.commit.validation]provider and strictnessSelect auto, custy, commitizen, or git validation and decide whether an unavailable optional tool is fatal.-No

Example Configuration

.config/custy/config.toml
toml
[tool.custy.cli.templates.file]
commit_message = ".config/custy/templates/commit-message.txt"

[tool.custy.cli.templates.directory]
backups_commit = ".config/custy/templates/backups/commit"

[tool.custy.cli.execution]
auto_stage = false
stage_mode = "all"
force_commit = false
check_cz = false

[tool.custy.commit.validation]
provider = "auto"
require_tool = false

See the complete behavior matrix for projects with and without Commitizen configuration or installation.