Skip to content

Fix .claude gitignore pattern to match symlinks#1796

Merged
kmcginnes merged 1 commit into
mainfrom
fix-claude-gitignore
May 29, 2026
Merged

Fix .claude gitignore pattern to match symlinks#1796
kmcginnes merged 1 commit into
mainfrom
fix-claude-gitignore

Conversation

@kmcginnes
Copy link
Copy Markdown
Collaborator

@kmcginnes kmcginnes commented May 29, 2026

Description

The .gitignore pattern .claude/ (with trailing slash) only matches directories. In worktree setups where .claude is a symlink, git doesn't ignore it. Removing the trailing slash makes the pattern match both directories and symlinks.

Validation

$ git check-ignore -v .claude
.gitignore:16:.claude	.claude

Related Issues

  • None

Check List

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I have verified pnpm checks passes with no errors.
  • I have verified pnpm test passes with no failures.
  • I have covered new added functionality with unit tests if necessary.
  • I have updated documentation if necessary.

Comment thread packages/graph-explorer-proxy-server/src/app.ts Fixed
@kmcginnes kmcginnes force-pushed the fix-claude-gitignore branch from 403d31d to a1f1e37 Compare May 29, 2026 22:54
The trailing slash in `.claude/` only matches directories, not symlinks.
Removing it allows git to ignore both.
@kmcginnes kmcginnes force-pushed the fix-claude-gitignore branch from a1f1e37 to 26a2783 Compare May 29, 2026 22:55
@kmcginnes kmcginnes marked this pull request as ready for review May 29, 2026 22:56
@kmcginnes kmcginnes merged commit a55be41 into main May 29, 2026
6 checks passed
@kmcginnes kmcginnes deleted the fix-claude-gitignore branch May 29, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants