Skip to content

Ignore node_modules whether it is a directory or a symlink - #11

Draft
puskuruk wants to merge 1 commit into
mainfrom
fix/ignore-node-modules-symlink
Draft

puskuruk wants to merge 1 commit into
mainfrom
fix/ignore-node-modules-symlink

Conversation

@puskuruk

Copy link
Copy Markdown
Collaborator

node_modules/ in .gitignore ignores a directory of that name but not a symlink of that name, so a checkout whose node_modules is a link to another install (a worktree sharing one install, for instance) can stage the link with git add -A. That happened once on #7 and was amended out. Without the trailing slash the pattern covers both.

Related

@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant