Git LFS is a Git extension and specification that stores large file contents on a remote server while keeping text pointers in Git history. Prebuilt binaries exist for major desktop platforms.
Overview
Git Large File Storage extends Git so repositories can version large assets without bloating every clone. Large files such as audio, video, datasets, and graphics are replaced inside Git with small text pointers, while the actual bytes live on a remote LFS server compatible with hosts like GitHub or GitHub Enterprise.
The client is a command-line tool written in Go. After a one-time git lfs install per machine, you select patterns to track with git lfs track, commit the updated .gitattributes file, and then use normal git add, commit, and push workflows. Git LFS intercepts matching paths and uploads content to LFS storage on push.
Existing history can be moved onto LFS with git lfs migrate, which rewrites commits and object IDs similarly to other history-rewriting operations. The tool can also convert a repository back to plain Git if LFS is no longer wanted. git lfs env and traced commands help debug setup issues.
Binaries ship for Linux, macOS, Windows, and FreeBSD via direct downloads, package managers such as Homebrew and Chocolatey, Debian and RPM packages, Git for Windows bundles, and mise-en-place. The project publishes signed releases and documents that it targets Git 2.0.0 and later, with recent Git recommended.
Key features
- Text pointer storage inside Git
- Remote large file content storage
- Pattern-based file tracking
- git lfs migrate for existing history
- Standard Git workflow after setup
- Prebuilt cross-platform binaries
- OpenPGP-signed release artifacts
- Compatible with GitHub LFS hosting
Use cases
- Versioning video and audio assets in Git
- Tracking large design or dataset files
- Keeping Git clones smaller
- Migrating legacy large blobs to LFS
- Teams sharing graphics in repositories