If git-wtf incorrectly identifies your integration branches (it defaults to master, next, and edge), you can create a .git-wtfrc configuration file. The tool searches for this file in the current directory and recursively up to the repository root.
Setup
To generate a template configuration file, run:
git-wtf --dump-config > .git-wtfrc
Configuration Schema
The file is a YAML file that supports the following keys:
integration-branches: A list of branches considered integration branches (e.g., heads/master).ignore: A list of branches to ignore.max_commits: The maximum number of commits to display when --all-commits is not used.
Important Note on Naming:
- Local branches must be prefixed with
heads/ (e.g., heads/master). - Remote branches must be of the form
remotes/<remote>/<branch>.
git-wtf --dump-config > .git-wtfrc