i have a repo where the files inside node_modules are also committed to the repo. i need to perform a git diff on the repo but want to ignore everything under node_modules. how can i do this?
i tried this git diff old_api..master -- . ':!node_modules'
(as suggested in this answer: https://stackoverflow.com/a/29374503) but it still diffs the content inside node_modules directory, e.g.:
diff --git a/db/node_modules/bhttp/README.md b/db/node_modules/bhttp/README.md
also i'm not sure what the ..
does so i removed it and tried this: git diff old_api master -- . ':!node_modules'
but no difference.
any help?