git ignore node_modules

Shell
Add this

node_modules/

to .gitignore file to ignore all directories called node_modules in current folder and any subfolders//create a .gitignore file and add the following in it
# dependencies
node_modules
Source

Also in Shell: