From b940afd83df5611cab76cb37edfcf973ed719fcc Mon Sep 17 00:00:00 2001 From: ozymandiashh <234437643+ozymandiashh@users.noreply.github.com> Date: Tue, 4 Aug 2026 03:04:25 +0300 Subject: [PATCH] chore(gitignore): ignore node_modules symlinks, not only directories The node_modules/ pattern (trailing slash) matches directories only. A node_modules SYMLINK, standard in linked worktrees that share one install, is not covered, which is how db018f7 accidentally committed one and every subsequent checkout materialized a self-referencing symlink until c642787 removed it. Dropping the slash covers files, directories and symlinks. --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b71c159..b733eab 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ -node_modules/ +# No trailing slash: the slash form only ignores directories, so a +# node_modules SYMLINK (common in linked worktrees) slips into git add -A. +# One did exactly that in db018f7 and had to be removed again in c642787. +node_modules dist/ *.tgz