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 GitHub.com or GitHub Enterprise.

Git LFS

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.

    Reference: https://stackoverflow.com/questions/54451856/how-can-i-tell-if-a-file-will-be-uploaded-to-git-lfs-correctly

  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.

Journal