-
Navigate to git-lfs.com and click Download.
Tip
For more information about alternative ways to install Git LFS for Linux, see this Getting started guide.
-
On your computer, locate and unzip the downloaded file.
-
Open Terminal .
-
Change the current working directory into the folder you downloaded and unzipped.
cd ~/Downloads/git-lfs-1.X.X
Note
The file path you use after
cd
depends on your operating system, Git LFS version you downloaded, and where you saved the Git LFS download. -
To install the file, run this command:
$ ./install.sh > Git LFS initialized.
Note
You may have to use
sudo ./install.sh
to install the file. -
Next, make required changes to your global Git config:
$ git lfs install > Git LFS initialized.
-
If you don't see a message indicating that
git lfs install
was successful, please contact your site administrator. Be sure to include the name of your operating system.
This version of GitHub Enterprise Server will be discontinued on 2025-03-05. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise Server. For help with the upgrade, contact GitHub Enterprise support.
Installing Git Large File Storage
In order to use Git LFS, you'll need to download and install a new program that's separate from Git.