From 12a7ceae5fa425f71a3e5526b84e17fc235dba38 Mon Sep 17 00:00:00 2001 From: Mao Nakamoto Date: Sun, 16 Aug 2026 15:14:41 +0200 Subject: [PATCH] chore: ignore per-session worktrees 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: 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/