I have a repo that has LFS objects in it. However, I don't care about these LFS objects for my particular use-case. I just want to operate on the git repo like a normal repo with LFS objects remaining as text pointers. Is this possible? I keep running into things like:
$ git reset --hard origin/master
git-lfs filter-process: line 1: git-lfs: command not found
fatal: the remote end hung up unexpectedly
I don't understand what's going on because I don't even have git lfs installed nor do I want to install it. Git should not have knowledge of LFS yet somehow it does and is crashing. What's the point of LFS being a 3rd party extension if vanilla git also has some LFS checks baked in?
Edit:
With GIT_TRACE=1
, I get:
$ git reset --hard origin/master
11:53:42.431221 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
11:53:42.440223 git.c:460 trace: built-in: git reset --hard origin/master
11:53:43.237223 run-command.c:655 trace: run_command: 'git-lfs filter-process'
Edit2:
I got it working with the following configs in my .gitconfig
:
[filter "lfs"]
process =
required = false
You can set these configs at the global or repo level with i.e. git config --global filter.lfs.process ""