From 95c47e11ed59794c37e0b56c0bf3be100134f393 Mon Sep 17 00:00:00 2001 From: Cosmin Staicu Date: Tue, 22 Sep 2026 08:50:38 +0300 Subject: [PATCH] chore: ignore agent scratch worktrees Sessions place throwaway checkouts under .claude/worktrees/, and nothing ignored them, so `git add -A` from the repository root picks one up as an embedded git repository and commits a gitlink to it. Scoped to that directory rather than .claude/, because .claude/commands/cla-add-signer.md is tracked on purpose. Signed-off-by: Cosmin Staicu --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 05a57cc3..10154042 100644 --- a/.gitignore +++ b/.gitignore @@ -255,3 +255,6 @@ BenchmarkDotNet.Artifacts/ # Local-only design notes (specs/plans); never committed docs/superpowers/ + +# Agent scratch worktrees; .claude/commands stays tracked +.claude/worktrees/