From c016873a6034419689b13f903924d2f20a628f7a Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Mon, 3 Nov 2025 14:39:31 -0500 Subject: [PATCH] ignore .worktrees as a "special folder" following the approach from nixpkgs that ignore the .worktrees folder, we could also do the same, this would allow worktrees to be worked on in the same folder as the primary branch. ref: https://github.com/NixOS/nixpkgs/commit/b6420c7bca86997ad66218dcf4fb902efc7ac4f6 --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 821b1b8c672e8..7e8e5f84a7200 100644 --- a/.gitignore +++ b/.gitignore @@ -124,3 +124,6 @@ prime/ /AGENT.md /CLAUDE.md /llms.txt + +# Ignore worktrees when working on multiple branches +.worktrees/