Replies: 2 comments 7 replies
-
Yes, it's the
But I'm not really sure if using a tool like |
Beta Was this translation helpful? Give feedback.
-
Ok I found a good solution! It is based on this answer. You will need to install git-filter-repo which is a popular git tool that is just a python script, which allows you to rewrite git history. First you run this command to identify the biggest files tracked by git at one point or another:
In the daisyui repo, it output the following:
Let's remove the biggest one, src/docs/package-lock.json:
Next let's remove the entire "nuxt-files" directory:
To clean up all those svelte changelogs, we can match a path glob:
Re-run the rev-list command and you'll see those files are gone. You can keep going on like this and it keeps reducing the size of the .git folder. Seems like there are a lot of files in the history that are no longer tracked. |
Beta Was this translation helpful? Give feedback.
-
Hey there, I really like this project. I wanted to understand it better so I cloned it down, and was pretty surprised to see the project folder is 722 MB before even running npm install!
I poked around in the folders and pretty much all that size is coming from git history. There must have been some huge files that were committed at one time. I think you can fix this, which probably a good idea when you consider that those huge files aren't part of the project anymore.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions