Git Large File Store (LFS)

An open source Git extension for versioning large files

Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like or GitHub Enterprise.


Install Git LFS onto a Computer

  1. Launch a terminal and navigate to the root directory of the repository you want to enable GitLFS. 2 . Run the following command:

     $ git lfs install
  2. To add a file to track run the following command:

     $ git lfs track "*.psd"

    In this command a git attribute will be added in .gitattributes to track all .psd files with GitLFS.

  3. Check that the files will become Git LFS objects.

    Run git lfs status to see which files are going to be committed as Git LFS objects.

    Run git lfs ls-files to list files that are being tracked by GitLFS.


  4. Commit and push changes to Git.

Note: In each Git repository where you want to use Git LFS, select the file types you’d like Git LFS to manage (or directly edit your .gitattributes). You can configure additional file extensions at anytime.