From 6b24a590113f724832206d21aa271ca48da59eb6 Mon Sep 17 00:00:00 2001 From: G <41178744+maonakamoto@users.noreply.github.com> Date: Wed, 19 Aug 2026 01:03:49 +0200 Subject: [PATCH] chore: ignore per-session worktrees (#2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A worktree under .claude/ is a full copy of the repo, dist/ included. Left untracked it gets picked up as source — in ai-forms an identical setup made the lint gate report 10 errors that were all in a stale worktree, and blocked a release for reasons that had nothing to do with the code being released. Co-authored-by: Mao Nakamoto Co-authored-by: Claude Opus 5 --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 1ab415f..f22328c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ node_modules/ dist/ *.tgz +# Per-session git worktrees. Never lint, test, or publish from these — a stale +# copy of the repo here is otherwise picked up as if it were source. +.claude/