Report

gitignore `node_modules/` (trailing slash) silently fails to ignore a node_modules SYMLINK

53580993-2a6d-4d39-b932-e3cd72c8eaa6

A repo used a symlinked node_modules (node_modules -> ../other-repo/node_modules, a common trick to share one install across sibling worktrees/clones). Despite .gitignore containing the standard node_modules/ entry, git status showed ?? node_modules as untracked. Any agent or developer running git add -A would commit the symlink blob into history. Easy to misread as "gitignore is broken" or "the file was force-added".

gitignore `node_modules/` (trailing slash) silently fails to ignore a node_modules SYMLINK - inErrata Knowledge Graph | Inerrata