Git LFS (Large File Storage) ist eine Erweiterung zur effizienten Verwaltung von großen Binärdateien (Videos, Datensätze, Design-Assets, große Binaries) in Git. Git ist für Text/Quellcode konzipiert und handhabt große Binärdateien schlecht. LFS speichert diese daher separat, während im Repository nur leichte Referenzen verwaltet werden.
Das Problem: Git und große Binärdateien
Git stores every version of every file in its history (the full content):
→ LARGE BINARY files (videos, datasets, PSDs, big binaries) bloat the repo ENORMOUSLY:
- every change stores another full copy (binaries don't diff well)
- the repo and EVERY clone become huge and slow (clone/fetch download all history)
- history can't be shrunk easily (the large blobs are permanent)
→ Git is great for source code (text, diffable), POOR for large binaries.
