Git-lfs: Clone without Downloading LFS Files on a System with Git LFS Installed

Created on 11 Jul 2017  路  4Comments  路  Source: git-lfs/git-lfs

Can't reopen #2405 so I just made a new issue, my question is the same. I still have to download the LFS files every time I clone. I attached a screenshot below. I set that variable and it sill goes about downloading the LFS files.

screenshot from 2017-07-10 14-55-35

Most helpful comment

Does "GIT_LFS_SKIP_SMUDGE=1 git clone " work?

All 4 comments

Does "GIT_LFS_SKIP_SMUDGE=1 git clone " work?

I have the same thought that @canyou2014 has... I think the issue is that although you are setting the value in your environment when you run GIT_LFS_SKIP_SMUDGE=1, but it's not making it into the environment of the git executable when you run it.

I think either invoking git as GIT_LFS_SKIP_SMUDGE=1 git ..., or export(1)-ing the value by running:

$ export GIT_LFS_SKIP_SMUDGE=1
$ git ...

That did it! Thanks for your help.

@ttaylorr, I have a repo hosted on bitbucket with allowed LFS and also configured with git lfs, so the traces are:

*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.avi filter=lfs diff=lfs merge=lfs -text
*.mp4 filter=lfs diff=lfs merge=lfs -text

but I have not found any way how to clone repo without downloading all content (files)... I have tried

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pointcache picture pointcache  路  4Comments

Infotaku picture Infotaku  路  4Comments

tarioch picture tarioch  路  4Comments

Vdragon picture Vdragon  路  3Comments

jsilverman-blispay picture jsilverman-blispay  路  4Comments