Git LFS
Track large files without bloating the repo
Git LFS replaces large files with small pointers in the repo. The actual content is stored on a separate server.
Large binary files (images, videos, models) bloat the repo. Every version is stored forever in .git.
Repository Files
hero.psd45 MB
video.mp4120 MB
model.bin200 MB
app.js12 KB
styles.css8 KB
Terminal
# Without LFS, large files bloat the repo: $ du -sh .git 2.4G .git # Most of it is binary files # Every version of every large file # is stored in the Git object database # Clone times get slower and slower