.git folder is MASSIVE
MasterScrat opened this issue · 2 comments
MasterScrat commented
I was curious why this small project took so long to clone:
/simple-push-demo/.git [master]$ du -sh
130M .
MasterScrat commented
I guess at some point the node_modules
was committed, causing the excessive size in the repo history.
gauntface commented
It's possible / very likely that node_modules were accidentally committed. I'm not sure how to remove them from the history though.
I tried using git filter-repo --invert-paths --path node_modules
but that doesn't seem to have made a meaningful impact.
If anyone sees this and is able to help, please re-open this issue:
- Help debug further (i.e. confirm node_modules is the issue vs something else)
- Knows how to reduce size of the repo without wiping out contributors.
Due to the age of this issue (sorry for not responding sooner) I'm going to close this.