Configuration commands
Git Town prompts for required configuration information during usage. Git Town
stores its configuration data inside
Git configuration data. You can store
configuration values in the local or global Git configuration depending on
whether you want to share config settings between repositories or not. To see
your entire Git configuration, run git config -l
. To see only the Git Town
configuration entries, run git config --get-regexp git-town
. The following
commands read and write the configuration entries for you so that you don't have
to run Git configuration commands manually:
- git town config - display or update your Git Town configuration
- git town config main-branch - display/set the main development branch for the current repo
- git town config push-new-branches - configure whether to push new empty branches to origin
- git town config offline - enable/disable offline mode
- git town config perennial-branches - display or update the perennial branches for the current repo
- git town config pull-branch-strategy - display or set the strategy to update perennial branches
- git town config sync-strategy - display or set the strategy to sync via merges or rebases