New branch type
This setting defines the type for new branches created using the git town hack, append, or prepend commands.
Before setting this, consider one of these more broadly applicable configuration entries:
- contribution-regex
- unknown-branch-type
- feature-regex
- observed-regex
- perennial-branches
- perennial-regex
values
These values make sense for this setting:
feature(default)parkedperennialprototype
config file
To configure the type of new branches in the configuration file:
[create]
new-branch-type = "feature"
Git metadata
To configure the type of new branches in Git metadata, run this command:
git config [--global] git-town.new-branch-type <feature|parked|perennial|prototype>
The optional --global flag applies this setting to all Git repositories on
your machine. Without it, the setting applies only to the current repository.
environment variable
You can configure the new branch type by setting the GIT_TOWN_NEW_BRANCH_TYPE
environment variable.