Перейти к содержанию

Git Large File Storage (LFS)

Documentation

What you need to do to start using Git LFS:

  1. Installation: Debian and Ubuntu
  2. In each Git repository where you want to use Git LFS:

    git lfs track "*.zip" "*.tar" "*.csv"
    git add .gitattributes
    

    The git lfs track ".zip" command will create the following entry in the .gitattributes file:

    *.zip filter=lfs diff=lfs merge=lfs -text
    

    See an example .gitattributes file in my styleguide-config repository:

    .gitattributes

  3. As a result, a file(s) labeled LFS will appear in the repository:

GitLab has tagged the file with the LFS tag