I have a directory where I’m storing all my solution to nodeschool.io courses.
For many of these solutions I have installed node dependencies. These are stored in a
in each folder. To ignore a directory recursively you can use the following
If you would like to remove any node_modules directories you’ve added accidentally you can use something like
git rm --cached */node_modules -r (ymmv).
Why did this warrant a blog post? I was searching around online and on irc for the solution to my problem
and there were a lot of misleading solutions such as
**/node_modules or even
Now I know.