SecLists
SecLists copied to clipboard
Git repository might need some cleanup
I've got this cloned onto my system and the directory takes up 778M of which 380M is the .git directory. This seems excessive. Might it be worthwhile to run garbage collection and pruning to reduce this down a bit? Or is there a valid reason to keep it all that I'm missing?
Maybe run something like what is suggested here: https://stackoverflow.com/questions/2116778/reduce-git-repository-size
Phenomenal point. We'll look into it.
I'll keep it open until we get it resolved.
you can use
git clone --depth 1
to clone the current state only ,without all the history
That's a good trick, shel3over.
From a quick test. An updated clone with full history was 764M but a fresh clone with --depth 1 was only 508M. The difference appears to be in the .git folders (448M vs 191M).
Maybe a note on the opening page to let users know this is a recommended way to clone?
you can use
git clone --depth 1
to clone the current state only ,without all the history
I suggest to add this note with the notification about over-sized .git directory to README file before this issue will be fixed.
Note: If you use git clone --depth 1
it'll be less to transfer and have on disk, however, you also won't be able to push or open PRs (in my experience).