Replies: 4 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.
-
|
Now it is 10 GB. Can't believe it becames 10x larger in 2 years. |
Beta Was this translation helpful? Give feedback.
-
|
Currently the repo includes branches for all previous versions + their docs To run on local, you would only need the master branch which you can get by forking that branch only:
The branches for previous versions are necessary to keep so we can push critical bug fixes in case of emergency and we can provide docs for the those versions simultaneously (like https://v4.daisyui.com/). Let me know if you have a question. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
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