//Put this in your .gitignore file
//Ignore all Node Module Folders Recursively
**node_modules
touch .gitignore //to create a .gitignore if you dont have one
echo "node_modules/" >> .gitignore //this adds node_modules to gitignore
cat .gitignore //checks what files you have in your gitignore
If you add the below text into your .gitignore file,
then it will look for the node_modules directory. Then the node_modules
directory will be ignored.
node_modules/