Skip to main content

gq config

gq config <NAME> <VALUE>

Description

Set options. The name is actually the section and the key separated by a dot.

Options

NAMEVALUEDescription
commit.conventionalBoolEnable Conventional Commits. Default is false.
commit.typesComma separated typesTypes for conventional commits. Default is build, ci, docs, feat, fix, perf, refactor, style, test, revert.
commit.ticketBoolEnable ticket number integration. Default is false.
branch.conventionalBoolEnable Conventional Branch. Default is false.
branch.typesComma separated typesTypes for conventional branches. Default is feature, bugfix, hotfix, release, chore.

Examples

Conventional commits

You can enable Conventional Commits by running:

gq config commit.conventional true

This setting will make GitQuick ask for a commit type every time you use gq commit. The default types can be changed by running:

gq config commit.types a,b,c

This would change the default types to "a","b","c".

Ticket integration

If you want your commits to reference a ticket based on the brach name, run:

gq config commit.ticket true

This setting will append ticket number inside parentheses to the end of your commits while using gq commit.

Using gq commit to create docs: add readme file commit message on feature/TEST-123-demo-setup branch will result in the following message: docs: add readme file (TEST-123).

Conventional branches

You can enable Conventional Branch by running:

gq config branch.conventional true

This setting will make GitQuick ask for a branch type every time you create a branch. The default types can be changed by running:

gq config branch.types a,b,c

This would change the default types to "a","b","c".