Preferences
You can see all preferences via the config command and change them via the setup assistant or manually. Configuration data exists on multiple levels:
-
Team-wide configuration settings go into the configuration file. These settings apply to all Git Town users working on the respective repository.
-
Each developer can configure their preferred Git Town settings for all repositories on their machine using global Git metadata. These settings override (1). For example, if I always want to use the
rebase
sync-feature-strategy in all my repositories, I would run:git config --global git-town.sync-feature-strategy rebase -
User and repo specific configuration settings go into local Git metadata, which takes precedence over (1) and (2). For example, if I want
rebase
as the default strategy for all my repositories, except in thefoo
repo I want to usemerge
, I’d first configure the global setting in (2), and then run in thefoo
repo:git config git-town.sync-feature-strategy merge