diff --git a/.gitignore b/.gitignore index 9bd7756..18c2413 100644 --- a/.gitignore +++ b/.gitignore @@ -63,6 +63,14 @@ __pycache__/ *.bak *.orig +# Claude Code worktrees. `git worktree add` with a relative path creates the +# new checkout inside whichever worktree is current, so without this an entire +# second copy of the repository — carrying its own .claude/worktrees/ — becomes +# untracked content on the branch being worked on, waiting for the next +# `git add -A`. Only worktrees/ is ignored: anything else under .claude/ stays +# visible, so settings or agents can be tracked deliberately if that is wanted. +.claude/worktrees/ + # ---- Large local artifacts never meant for git ---- ISOs/ software/