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

unknown-branch-type

This setting defines the branch type to use when Git Town cannot determine the branch type using all other configuration settings:

Possible values are:

  • feature (default)
  • contribution
  • observed
  • parked
  • prototype

config file

In the config file, the unknown branch type is specified in the [branches] section:

[branches]
unknown-type = "feature"

Git metadata

You can manually configure the unknown branch type using Git metadata:

git config [--global] git-town.unknown-branch-type "feature"

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 branch type Git Town should assume for unknown existing branches by setting the GIT_TOWN_UNKNOWN_BRANCH_TYPE environment variable.