interactive
Git Town prompts for missing input when required CLI flags are not provided.
These prompts require an interactive terminal. If the terminal is non-interactive or lacks required capabilities (for example, in CI or scripts), Git Town disables interactive mode automatically.
If auto-detection is incorrect, or if you need consistent behavior, disable interactive mode explicitly using this setting.
When interactive mode is disabled and required input is missing, Git Town exits with an error message explaining the flags needed to rerun the command non-interactively.
CLI flag
You can enable or disable interactive features for a single invocation:
git-town <command> --interactive
git-town <command> --non-interactive
config file
In the config file interactivity is configured as part of the general section.
interactive = false
Git metadata
To configure the main branch in Git, run this command:
git config [--global] git-town.interactive <true|false>
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 main branch by setting the GIT_TOWN_INTERACTIVE
environment variable.