I have tracked some files in a Git repository with LFS and everything is in a clean state. When I delete an LFS-tracked file and then call git lfs pull
, as my CI build script needs to do, the deleted file is immediately restored. Doing this before a commit would effectively prevent deleting LFS-tracked files.
How can I tell git-lfs to only pull those files that are actually referenced in the current working directory? If a pointer file is not there, that certainly has a reason.