DEV Community

Discussion on: Why you don't have to commit node_modules folder

Collapse
 
diballesteros profile image
Diego (Relatable Code)

I remember when first starting out I would commit every file and folder. Including node_modules. Those diff sizes were huge! And cloning in other computers would take quite some time.

Obviously learned since then. Nice write up.

Collapse
 
grawl profile image
Даниил Пронин

And even if you delete node_modules and commit that, it will not remove these files from repo history.