Re:Shrunked JavaScript monorepo Git size by 94%
by larusso on Sunday October 27, 2024 @02:22AM
(#41960262)
The main issue is not a binary file that never changes. It’s the small binary file that changes often.
Re:Shrunked JavaScript monorepo Git size by 94%
by abound on Sunday October 27, 2024 @03:00AM
(#41960400)
There's also BFG (https://rtyley.github.io/bfg-repo-cleaner/) for people like me who are scared of filter-branch.
As someone else noted, this is about small, frequently changing files, so you could remove old versions from the history to save space, and use LFS going forward.
Re:Shrunked JavaScript monorepo Git size by 94%
by lastdong on Sunday October 27, 2024 @03:37AM
(#41960539)
It’s easier to blame Linus.
> Retroactively, once the file is there though, it's semi stuck in history.
Arguably, the fix for that is to run filter-branch, remove the offending binary, teach and get everyone setup to use git-lfs for binaries, force push, and help everyone get their workstation to a good place.
Far from ideal, but better than having a large not-even-used file in git.