Git-LFS: Reference and Examples

Last updated:
Table of Contents

Clone without LFS

This content was inspired by a post by Marcelo Ávila de Oliveira on Stackoverflow

It may take a long time to download and configure large files in a large repo.

To clone a repo ignoring LFS, set these two configs and GIT_LFS_SKIP_SMUDGE environment variable before cloneing a repo:

$ git config --global filter.lfs.process "git-lfs filter-process --skip"
$ git config --global filter.lfs.smudge "git-lfs smudge -- skip -- %f"
$ GIT_LFS_SKIP_SMUDGE=1 git clone --depth 1

Dialogue & Discussion