If you forget to exclude node_modules directory add a .gitignore with the following or add this line to an existing one:
Then run the following command to remove the complete directory from git’s cache:
git rm -r --cached node_modules/
And then add all changes (removals) to the git repository and do a commit :
git add -A && git commit -a -m "excluded node modules"
And then do a:
to update the entire (remote) repository
Jasper has been working with web frameworks and applications such as Laravel, Magento and his favorite CMS WordPress including Roots Trellis and Sage for more than a decade. He helps customers with web design and online marketing. Services provided are web design, ecommerce, SEO, content marketing. When Jasper is not coding, marketing a website, reading about the web or dreaming the internet of things he plays with his son, travels or run a few blocks.
Thanks, man. You help me :DD
Glad to hear I could make a difference Marcio!