Skip to content

Official Codebase of 3DCodeVerse

Python

gitignore: ignore a symlinked node_modules, not only a real directory

gaoypenga10974080591
diff --git a/.gitignore b/.gitignore
index e6772442..2bd28ba2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,10 @@ __pycache__/
.pytest_cache/
.ruff_cache/
node_modules/
+# also the bare name: the documented worktree workflow symlinks
+# harness/runtime_js/node_modules, and a symlink is a FILE to git — the
+# trailing-slash pattern above does not match it, so `git add -A` committed it.
+node_modules
runs/
harness/runs/
bench/out/