Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git repository might need some cleanup #54

Open
dvehrs opened this issue Apr 30, 2016 · 8 comments
Open

Git repository might need some cleanup #54

dvehrs opened this issue Apr 30, 2016 · 8 comments
Labels

Comments

@dvehrs
Copy link

dvehrs commented Apr 30, 2016

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

@danielmiessler
Copy link
Owner

Phenomenal point. We'll look into it.

I'll keep it open until we get it resolved.

@shel3over
Copy link

you can use
git clone --depth 1
to clone the current state only ,without all the history

@dvehrs
Copy link
Author

dvehrs commented Oct 10, 2016

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?

uwx pushed a commit to BonerBrew/SecLists that referenced this issue Feb 25, 2017
@g0tmi1k g0tmi1k added the maintenance Maintenance label Jun 13, 2018
@toxydose
Copy link
Contributor

toxydose commented Oct 31, 2018

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.

@kingthorin
Copy link

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).

@vonProteus
Copy link

maybe migrate to git lfs
that would speed up the cloning process

@molangning
Copy link
Contributor

maybe migrate to git lfs that would speed up the cloning process

lfs has GiB bandwidth per month, and any additional bandwidth needs to be purchased.

@ItsIgnacioPortal
Copy link
Contributor

ItsIgnacioPortal commented Sep 23, 2024

lfs has GiB bandwidth per month, and any additional bandwidth needs to be purchased.

To quote the github docs:

When you download a file tracked with Git LFS, the total file size is counted against the repository owner's bandwidth limit.

If you use more than 1 GiB of bandwidth per month without purchasing a data pack, Git LFS support is disabled on your account until the next month.

Also, if seclists were to use git LFS, everyone who wanted to clone the repo would also need to install git LFS on their system before cloning. See: https://docs.github.com/en/repositories/working-with-files/managing-large-files/collaboration-with-git-large-file-storage

Therefor, git LFS is not viable to be used on Seclists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants