main-branch
This setting stores the name of the main branch. The main branch is the default parent branch for new feature branches created with git town hack and the default branch into which Git Town ships finished feature branches.
config file
In the config file the main branch is part of the
[branches]
section:
[branches]
main = "config-main"
Git metadata
To configure the main branch in Git, run this command:
git config [--global] git-town.main-branch <value>
The optional --global
flag applies this setting to all Git repositories on
your machine. Without it, the setting applies only to the current repository.