Mehdiway Mehdiway - 1 year ago 169
Git Question

Git - Ignore node_modules folder everywhere

I have a project containing multiple other projects :

  • Main project

    • Mini project 1

    • Mini project 2

All containing
folder. I want git to ignore the folder no matter where it is starting from the root folder. Something like this to add in .gitignore :


Answer Source

Add this


to .gitignore file to ignore all directories called node_modules in current folder and any subfolders

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download