Answers for "create gitignore for node modules in node js backend app"

9

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
Posted by: Guest on April-14-2021
0

how to add node modules to gitignore

create a .gitignore file grobally
On that file add the line "node_modules"
Posted by: Guest on January-16-2022

Code answers related to "create gitignore for node modules in node js backend app"

Browse Popular Code Answers by Language