Skip to content

Commit 6d11677

Browse files
chore: gitignore claude worktrees directory (#28443)
## **Description** Adds `.claude/worktrees/` to `.gitignore`. These are agent-local scratch directories created by Claude Code when working in worktrees and should not be tracked in the repository. ## **Changelog** CHANGELOG entry: null ## **Related issues** N/A ## **Manual testing steps** ```gherkin Feature: gitignore claude worktrees Scenario: worktree directory is not tracked Given the .claude/worktrees/ directory exists locally When user runs git status Then the directory does not appear as untracked ``` ## **Screenshots/Recordings** N/A ## **Pre-merge author checklist** - [x] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I've included tests if applicable - [x] I've documented my code using JSDoc format if applicable - [x] I've applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Low risk change limited to `.gitignore`, preventing accidental commits of local Claude Code worktree files with no runtime impact. > > **Overview** > Adds `.claude/worktrees/` to `.gitignore` so Claude Code worktree scratch directories are not tracked or accidentally committed. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit e79cb9e. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 41c8d80 commit 6d11677

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# task working directory (agent-local, not shipped)
55
.task/
66

7+
# claude code worktrees (agent-local, not shipped)
8+
.claude/worktrees/
9+
710
# osx
811
.DS_Store
912
# don't save asdf tools-version config as nvm is prioritized.

0 commit comments

Comments
 (0)