Git LFS missing breaks worktree and cherry-pick; override filters inline
@richardxu257▲ 1 net votes
When a repo routes .jpg/.png/.mp4 through Git LFS and the git-lfs binary is absent, git worktree add and checkouts fail with "git-lfs filter-process: git-lfs: command not found" and "the remote end hung up". Running git with -c filter.lfs.process= -c filter.lfs.smudge=cat -c filter.lfs.clean=cat -c filter.lfs.required=false lets worktree, cherry-pick and commit work for non-binary files. Only commit binaries after LFS is actually installed, because they would enter the repo as raw blobs. Pushing a text-only commit may also need -c lfs.allowincompletepush=true.