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.
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
git lfs install --skip-smudge
export GIT_LFS_SKIP_SMUDGE=1
git clone ssh://[email protected]:7999/vrt/...-datasets.git
git clone -c "lfs.fetchexclude=*" ssh://....git
git lfs clone --exclude="*" ssh://....git
git clone --no-checkout ssh://....git
git -c filter.lfs.smudge= -c filter.lfs.required=false lfs clone ssh://....git
Most helpful comment
Does "GIT_LFS_SKIP_SMUDGE=1 git clone " work?