Horje
how to gitignore node modules Code Example
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
touch .gitignore && echo "node_modules/" >> .gitignore && git rm -r --cached node_modules ; git status
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




Shell

Related
wsl restart Code Example wsl restart Code Example
how to add a directory in path linux Code Example how to add a directory in path linux Code Example
npm command not found Code Example npm command not found Code Example
linux extract zip with password Code Example linux extract zip with password Code Example
Peer's Certificate issuer is not recognized Code Example Peer's Certificate issuer is not recognized Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11