-
Navigate to git-lfs.github.com and click Download. Alternatively, you can install Git LFS using a package manager:
If you install Git LFS with Homebrew or MacPorts, skip to step six.
-
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. -
Verify that the installation was successful:
$ git lfs install > Git LFS initialized.
-
If you don't see a message indicating that
git lfs install
was successful, please contact GitHub Support or GitHub Premium Support. Be sure to include the name of your operating system.
Article version: Free, Pro, and Team
Article version: Free, Pro, and Team
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.
Did this doc help you?
Want to learn about new docs features and updates? Sign up for updates!
We're continually improving our docs. We'd love to hear how we can do better.
Thank you! Your feedback has been submitted.
Help us make these docs great!
All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.
Make a contribution