News for hackers. Stuff that matters.
Re:The Future of Large Files in Git Is Git by AceJohnny2 on Friday August 15, 2025 @09:15PM (#44919124)
git works just fine with large files. The problem is that when you clone a repo, or pull, by default it gets everything, including large files deep in the history that you probably don't care about anymore.

That was actually an initial selling point of git: you have the full history locally. You can work from the plane/train/deserted island just fine.

These large files will persist in the repo forever. So people look for options to segregate large files out so that they only get downloaded on demand (aka "lazily").

All the existing options (submodules, LFS, partial clones) are different answers to "how do we make certain files only download on demand"

Re:The Future of Large Files in Git Is Git by nomel on Saturday August 16, 2025 @12:14AM (#44920110)
> All the existing options

Don't forget sparse checkouts!

Re:The Future of Large Files in Git Is Git by anon-3988 on Friday August 15, 2025 @09:33PM (#44919259)
IIRC, it take ages for it to index a large folder. I was trying to use it to store the diff of my backup folder that constantly get rclone'd and rsync'd over in case those fucked up catastrophically
Re:The Future of Large Files in Git Is Git by expenses3 on Saturday August 16, 2025 @06:51AM (#44922114)
No, git does not work 'just fine' with large files. It works like ass.