Skip to content

Commit aa7ec64

Browse files
ignore .worktrees as a "special folder" (#35835)
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: NixOS/nixpkgs@b6420c7
1 parent 17a6a2b commit aa7ec64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,6 @@ prime/
124124
/AGENT.md
125125
/CLAUDE.md
126126
/llms.txt
127+
128+
# Ignore worktrees when working on multiple branches
129+
.worktrees/

0 commit comments

Comments
 (0)