Git Large File Storage (Git LFS)
Definition
Git LFS manages large file contents outside the normal Git object history and links them via pointers.
Git Large File Storage is a Git extension for large files. Small pointer files reside in the repository, while the actual contents are transferred via a separate LFS storage. The associated file states remain linked to the Git versions.
Simply explained
Git remembers which large file belongs to a version and loads its content from an additional storage.
Why it matters in practice
This can facilitate working on projects with large binary files but requires appropriate support on computers and servers.
Example from business
Possible use case: A design team versions large project files with LFS and keeps the application code directly in the same Git repository.
Limits and pitfalls
- A Git clone alone does not guarantee availability of all LFS contents. Storage limits, access rights, and backup of the additional file storage must be considered.
Origin & history
LFS supplements Git's normal storage for files whose size and binary changes can burden repository usage. The version association remains preserved in the Git history.
Use in mid-sized companies
- An organization defines the file types managed with LFS and checks whether employees and automated builds can actually retrieve the required contents.
Frequently asked questions
Does Git LFS store only links to arbitrary files?
No. It uses defined pointers to managed file objects and appropriate transfer between LFS client and storage.
Sources
- Git Large File Storage. · Git LFS-Projekt (o. J.): Git Large File Storage.
Editorially reviewed on: