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

Investigate big git folder #356

Closed
Erb3 opened this issue Nov 6, 2023 · 3 comments
Closed

Investigate big git folder #356

Erb3 opened this issue Nov 6, 2023 · 3 comments

Comments

@Erb3
Copy link
Contributor

Erb3 commented Nov 6, 2023

When cloning the git repository with git clone, you can notice it is very big. (Over 470mb !)
I've found that the big file is a .pack file inside of .git/objects/pack.

  • What specifically is this file?
  • Can we remove it, if so how?
@xhayper
Copy link
Contributor

xhayper commented Nov 6, 2023

that's the flaw of git, git record every changes with lead up to big file

@CustomIcon
Copy link

im sure no one want it to be squash merged. git LFS perhaps? https://git-lfs.com/

@ixahmedxi ixahmedxi closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
@Erb3
Copy link
Contributor Author

Erb3 commented May 14, 2024

If anyone comes across this in the future, we solved it with something similar to:

java -jar ~/Software/bfg/bfg-1.14.0.jar --delete-folders .yarn --no-blob-protection --strip-biggest-blobs 10
git reflog expire --expire=now --all && git gc --prune=now --aggressive
git push -f

Then removed all the other branches on the repo. See bfg-repo-cleaner.

@ixahmedxi ixahmedxi reopened this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants