Git

Retrieve large files with Git LFS

When a clone has a small text pointer where you expect a photo, check the Git LFS rules and download the object from the repository’s remote.

Example · Retrieve a recipe photo from Git LFS

  1. Open the Artwork repository in Explorer and start a terminal in that folder. Run cat .gitattributes and check that JPEG files use the LFS filter.

  2. Run git lfs ls-files and head -3 "Apple cake.jpg". The pointer identifies the object by its SHA-256 value.

  3. Run git lfs pull, then file "Apple cake.jpg". Open the file in Fricle and check that the actual cake photograph appears.

The downloaded JPEG opens at 1280 × 720 in the image viewer.

Example · Fetch a private repository

Use the Git credentials authorized for the repository on the device holding the checkout. Fetch its remote and run git lfs pull from that same working directory.