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:

  1. Team-wide configuration settings go into the configuration file. These settings apply to all Git Town users working on the respective repository.

  2. 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
  3. 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 the foo repo I want to use merge, I’d first configure the global setting in (2), and then run in the foo repo:

    git config git-town.sync-feature-strategy merge