I have a project containing multiple other projects :
All containing <
Try doing something like this
**/node_modules
** is used for a recursive call in the whole project
Two consecutive asterisks
**in patterns matched against full pathname may have special meaning:A leading
**followed by a slash means match in all directories. For example,**/foomatches file or directoryfooanywhere, the same as patternfoo.**/foo/barmatches file or directorybaranywhere that is directly under directoryfoo.A trailing
/**matches everything inside. For example,abc/**matches all files inside directoryabc, relative to the location of the .gitignore file, with infinite depth.A slash followed by two consecutive asterisks then a slash matches zero or more directories. For example,
a/\**/bmatchesa/b,a/x/b,a/x/y/band so on.Other consecutive asterisks are considered invalid.
Reference