Updated on 2024-11-22 GMT+08:00

Configuring Git LFS

Git Large File Storage (LFS) is an extension of Git and is used to manage large binary files in Git repositories. Git LFS stores large files outside Git repositories to prevent Git repositories from becoming too large and slow. It supports most common binary file formats, including image, video, and audio. You can manage large files and code separately, and use Git's versioning function to track and manage them. Git LFS can also lock files and control versions to avoid conflicts when multiple users are editing large files at the same time.

To use Git LFS, you need to install the Git LFS client and enable the Git LFS extension in Git repositories. You need to add large files to the Git LFS tracking list for better management.

Table 1 Installing Git LFS

OS

Official Installation Guide Link

Windows

Windows Git-LFS installation guide

Linux

Linux Git-LFS installation guide

macOS

macOS Git-LFS installation guide