how to add node modules in gitignore code example
Example 1: how to gitignore 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
Example 2: ignore node modules
//create a .gitignore file and add the following in it
# dependencies
node_modules
Example 3: add node modules to git ignore
## New Solution:
## create .gitignore & add node_modules
git rm -r --cached .
git add .
git commit -m"removed all files from gitignore"
git push origin master