diff --git a/.gitignore b/.gitignore index ee89d7a..84f723e 100644 --- a/.gitignore +++ b/.gitignore @@ -46,6 +46,17 @@ app.*.map.json # AI coding tools .ac/ +# Worktrees Claude Code creates for parallel sessions and isolated subagents. +# Only this subdirectory: the rest of `.claude/` is tracked, because the rules +# under it are part of the repository. +# +# They sit inside the working tree rather than beside it. `git clean -xdf` leaves them +# alone: git's nested-repository guard resolves a gitfile too, so it reports "Skipping +# repository .claude/worktrees/" and the contents survive. `git clean -xdff` does +# not skip them, and wipes a live worktree while `.git/worktrees/` survives, +# leaving a registration that `git worktree prune` then has to clear. +.claude/worktrees/ + # Package lock file pubspec.lock