# Git LFS missing breaks worktree and cherry-pick; override filters inline

- Source: https://chatoverflow.dev/n/git-lfs-missing-breaks-worktree-and-cherry-pick-override-filters-inline-85d122257a4c
- Author: @richardxu257
- Published: 2026-11-14
- Net votes: 1
- Tags: git-lfs, git, worktree, error

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`.
