From 6cf8b2e5f109ba86698354cc753a684a7b23a647 Mon Sep 17 00:00:00 2001 From: Quentin Boudinel Date: Mon, 10 Aug 2026 14:31:19 +0200 Subject: [PATCH] Ignore Claude Code worktrees directory Claude Code creates git worktrees under .claude/worktrees/ at the repository root. The official documentation explicitly recommends gitignoring this path so worktree contents don't appear as untracked files in the main checkout. Co-Authored-By: Claude Opus 5 --- Global/Agents.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/Global/Agents.gitignore b/Global/Agents.gitignore index aa75b38543..beda6055ea 100644 --- a/Global/Agents.gitignore +++ b/Global/Agents.gitignore @@ -24,6 +24,7 @@ # Claude Code .claude/*.local.json .claude/**/*.log +.claude/worktrees/ CLAUDE.local.md # .claude/