Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Feature regex

Branches matching this regular expression are treated as feature branches. This setting is relevant only when the unknown-branch-type setting is set to something different than “feature”.

configure in config file

In the config file, define the feature regex within the [branches] section:

[branches] feature-regex = "^my-*"

configure in Git metadata

To manually set the feature regex, use the following command:

git config [--global] git-town.feature-regex '^user-.*'

The optional --global flag applies this setting to all Git repositories on your local machine. When not present, the setting applies to the current repo.

environment variable

You can configure the feature regex by setting the GIT_TOWN_FEATURE_REGEX environment variable.