description: Change how .bonfire/ is handled in git allowed-tools: Bash(git:*), Read, Write, AskUserQuestion
Run git rev-parse --show-toplevel to locate the repository root.
Read <git-root>/.bonfire/config.json to check current specsLocation and docsLocation settings.
Present the git strategy options:
Ignore all - Keep sessions completely local
Hybrid - Commit docs/specs, keep notes private
Commit all - Share everything with team
Use AskUserQuestion to ask which strategy:
"Which git strategy for .bonfire/?" (Header: "Git")
Write the appropriate .gitignore to <git-root>/.bonfire/.gitignore:
Ignore all:
*
!.gitignore
Hybrid (only include dirs that are inside .bonfire/):
*
!.gitignore
If docsLocation is .bonfire/docs/, add:
!docs/
!docs/**
If specsLocation is .bonfire/specs/, add:
!specs/
!specs/**
Commit all:
data/
scratch/
scripts/
If switching FROM commit/hybrid TO ignore:
git rm -r --cached .bonfire/ (removes from git but keeps files)If switching TO commit/hybrid:
Report: