Git LFS is a command line extension and specification for managing large files with Git.
The client is written in Go, with pre-compiled binaries available for Mac, Windows, Linux, and FreeBSD. Check out the website for an overview of features.
Debian and RPM packages are available from packagecloud, see the Linux installation instructions.
Homebrew bottles are distributed and can be installed via brew install git-lfs.
Git LFS is included in the distribution of Git for Windows. Alternatively, you can install a recent version of Git LFS from the Chocolatey package manager.
If you are using the mise-en-place tool manager, Git LFS can be installed and made available in all of your project directories by running:
$ mise use --global git-lfs@latestThe mise utility supports Linux, macOS, and Windows, and provides various configuration options including system-wide settings for all users. See the project documentation for details on how to use this utility to manage your tools, environment variables, and also some tasks.
Binary packages are available for Linux, macOS, Windows, and FreeBSD. The binary packages include a script which will:
- Install Git LFS binaries onto the system
$PATH. On Windows in particular, you may need to restart your command shell so any change to$PATHwill take effect and Git can locate the Git LFS binary. - Run
git lfs installto perform required global configuration changes.
$ ./install.shNote that Debian and RPM packages are built for multiple Linux distributions and versions for both amd64 and i386. For arm64, only Debian packages are built and only for recent versions due to the cost of building in emulation.
- Ensure you have the latest version of Go, GNU make, and a standard Unix-compatible build environment installed.
- On Windows, install
goversioninfowithgo install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@latest