git ignore node modules
node_modules/
git ignore node modules
node_modules/
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
git ignore node_modules
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/
ignore node modules
//create a .gitignore file and add the following in it
# dependencies
node_modules
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us