Git AdvancedLesson 42Free preview
Git Large File Storage (LFS)
This lesson is part of Git · All levels
Summary
Git Large File Storage (LFS) replaces large files in a repository with small pointers to keep the history light. The original files are stored on the LFS server and downloaded as needed, suitable for assets such as images, videos, and design files. Activate LFS with git lfs track, which writes patterns to the file .gitattributes.
Key points
- LFS stores small pointers in repo and large blobs on LFS servers
- Git lfs track "*.psd" adds a pattern to .gitattributes
- Without the LFS client, the cloned file is just a text pointer.
- GitHub limits the usual files to about 100 MB per file.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.