Git LFS(Large File Storage)は、Git内で大きなバイナリファイル(ビデオ、データセット、デザインアセット、大型バイナリ)を効率的に扱うための拡張機能です。Gitはテキスト/ソースコード向けに設計されており、大きなバイナリの扱いは不得意なため、LFSはそれらをリポジトリの外に保存し、軽量な参照をリポジトリ内に保持します。
問題:Gitと大きなバイナリ
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.
