use gitignore to ignore node modules code example
Example: ignore node modules
//create a .gitignore file and add the following in it
# dependencies
node_modules
//create a .gitignore file and add the following in it
# dependencies
node_modules