Explanation of hierarchical configuration system
The tool provides three levels of configuration options:
- zero configuration mode: 21 built-in smart defaults, including main branch target, npm script commands, etc., support direct execution of gissy watch
- Project-level configuration: Define 14 core parameters such as branching policies, quality check switches, etc. via .gissyrc.json file, support JSON Schema validation
- run-time override (computing): The watch command supports 12 CLI parameters such as -use-ai to enable temporary configuration adjustments
The technical implementation adopts a configuration merging strategy with the following priority order: CLI parameters > project configuration > global defaults. For example, the testCommand parameter can be assigned in three ways: default npm test → project configuration override for yarn test → command line with -test-command='pnpm test' final effect. This design makes the tool suitable for both personal projects to start quickly, but also to meet the complexity of enterprise-level scenarios.
This answer comes from the articleGissy: a command line assistant that uses AI to enhance Git workflowsThe