Git LFS (Large File Storage) je rozšíření pro efektivní práci s velkými binárními soubory (videa, datasety, designové assety, velké binárky) v Gitu. Git je navržen pro text/zdrojový kód a velké binární soubory zvládá špatně, proto LFS je ukládá odděleně a v repozitáři si udržuje pouze lehké reference.
Problém: Git a velké binární soubory
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.
