How to fix git-lfs filter-process: git-lfs: command not found in Git
This error occurs when Git tries to use Git LFS (Large File Storage) but the git-lfs command is not installed or not in your PATH. Install Git LFS and run 'git lfs install' to resolve it.
Quick fix
Fixes git-lfs filter-process: git-lfs: command not found
brew install git-lfs- Install Git LFS on your system
- Initialize Git LFS for your user account
- Pull the LFS files for your repository
- Link git-lfs to Git's exec path (macOS/Linux)
brew install git-lfsgit-lfs filter-process: git-lfs: command not found
What this error means
Git LFS (Large File Storage) is an extension that replaces large files like audio, video, datasets, and graphics with text pointers inside Git, while storing the actual file contents on a remote server. When you clone or pull from a repository that uses Git LFS, Git needs to invoke the `git-lfs` command to download the actual file contents. The "git-lfs filter-process: git-lfs: command not found" error occurs when Git cannot find the `git-lfs` executable. This typically happens because: 1. Git LFS is not installed on your system 2. Git LFS is installed but not in your system's PATH 3. Your IDE or Git GUI is using a different Git installation that doesn't have access to Git LFS This error commonly appears when cloning repositories from GitHub, GitLab, or Bitbucket that use Git LFS to store large binary files. The clone operation may partially succeed, but the LFS-tracked files will contain pointer text instead of actual content.
Typical symptoms
- Clone operations fail or complete with warnings about git-lfs
- Large files in the repository contain text pointers instead of actual content
- Pull or checkout operations fail with filter-process errors
- IDEs like VS Code, Visual Studio, or JetBrains show git-lfs errors in the terminal
- CI/CD pipelines fail when checking out repositories that use Git LFS
Common causes
- Git LFS is not installed on your system (most common)
- Git LFS is installed but 'git lfs install' was never run to configure Git
- On macOS, Homebrew-installed git-lfs is not visible to Xcode's bundled Git
- On Windows, the Git LFS path is not in the system PATH or is truncated
- Your IDE or Git GUI is using an embedded Git that doesn't include Git LFS
- Git and Git LFS were installed from different package managers with conflicting paths
How to fix "git-lfs filter-process: git-lfs: command not found"
First, install Git LFS using your package manager:
macOS (using Homebrew):
brew install git-lfsmacOS (using MacPorts):
port install git-lfsUbuntu/Debian (20.04+):
sudo apt install git-lfsFedora/RHEL:
sudo dnf install git-lfsWindows:
Download and run the installer from https://git-lfs.com, or reinstall Git for Windows and check the "Git LFS" option in the installer.
After installing, you must configure Git to use LFS. Run this command once per user account:
git lfs installThis adds the necessary LFS filter configuration to your ~/.gitconfig file. You only need to run this once, not per repository.
To verify the configuration was applied:
git config --global --get filter.lfs.processThis should output something like: git-lfs filter-process
If you already cloned a repository before installing Git LFS, the LFS-tracked files will contain pointers instead of actual content. Fetch the actual files with:
git lfs pullThis downloads all LFS-tracked files from the remote server and replaces the pointers with actual content.
For repositories with many large files, this may take some time depending on your connection speed.
If Git LFS is installed but Git still can't find it, create a symbolic link:
# Find where git-lfs is installed
which git-lfs
# Create a link in Git's exec path
sudo ln -s "$(which git-lfs)" "$(git --exec-path)/git-lfs"This is particularly common on macOS when using Xcode's bundled Git with Homebrew-installed Git LFS.
Verify the link works:
git lfs versionOn Windows, the Git LFS executable path may not be in your system PATH, or may be truncated if your PATH is very long.
Check if git-lfs is in PATH:
where git-lfsIf not found, add it manually:
1. Open System Properties > Advanced > Environment Variables
2. Find the PATH variable in User or System variables
3. Add C:\Program Files\Git LFS to the beginning of the PATH
4. Click OK and restart your terminal or IDE
Alternatively, reinstall Git for Windows:
Run the installer and ensure "Git LFS (Large File Support)" is checked in the "Select Components" step.
If the error only occurs in your IDE but works in the terminal, your IDE may be using an embedded Git without LFS support.
VS Code:
Open Settings (Ctrl+,) and search for "git.path". Set it to your system Git:
"git.path": "/usr/local/bin/git"SourceTree:
Go to Tools > Options > Git and change from "Embedded" to "System" Git version.
JetBrains IDEs (IntelliJ, WebStorm, etc.):
Go to Settings > Version Control > Git and set the "Path to Git executable" to your system Git installation.
If Git still can't find git-lfs, configure it to use the full path:
# Find the full path to git-lfs
which git-lfs
# Example output: /usr/local/bin/git-lfs
# Configure Git to use the full path
git config --global filter.lfs.clean "/usr/local/bin/git-lfs clean -- %f"
git config --global filter.lfs.smudge "/usr/local/bin/git-lfs smudge -- %f"
git config --global filter.lfs.process "/usr/local/bin/git-lfs filter-process"
git config --global filter.lfs.required trueReplace /usr/local/bin/git-lfs with the actual path from the which command.
Confirm Git LFS is working correctly:
# Check Git LFS version
git lfs version
# Check Git LFS status in your repository
cd your-repository
git lfs status
# List LFS-tracked files
git lfs ls-filesIf all commands work without errors, try cloning a fresh copy of your repository to confirm the fix:
git clone https://github.com/user/repo.git test-clone
cd test-clone
git lfs pullAdvanced notes
### Skip LFS During Clone (Workaround)
If you need to clone a repository quickly without downloading large LFS files, you can skip the smudge filter:
git lfs install --skip-smudge
git clone https://github.com/user/repo.git
cd repo
git lfs pull # Download LFS files later when needed
git lfs install --force # Re-enable smudge filter### Installing Git LFS in CI/CD Pipelines
Most CI/CD platforms have Git LFS available but may not have it enabled by default:
GitHub Actions:
- uses: actions/checkout@v4
with:
lfs: trueGitLab CI:
variables:
GIT_LFS_SKIP_SMUDGE: "0"Bitbucket Pipelines:
Git LFS is pre-installed on Bitbucket Pipelines images.
### Homebrew Git + Git LFS on macOS
For the most reliable setup on macOS, install both Git and Git LFS from Homebrew:
brew install git git-lfs
git lfs installThis ensures both tools use the same paths and work together seamlessly.
### Repository-Specific LFS Installation
To enable Git LFS only for a specific repository (not globally):
cd your-repository
git lfs install --localThis adds the LFS configuration to .git/config instead of ~/.gitconfig.
Frequently asked questions
- What does "git-lfs filter-process: git-lfs: command not found" mean?
- Git LFS (Large File Storage) is an extension that replaces large files like audio, video, datasets, and graphics with text pointers inside Git, while storing the actual file contents on a remote server. When you clone or pull from a repository that uses Git LFS, Git needs to invoke the git-lfs command to download the actual file contents. The "git-lfs filter-process: git-lfs: command not found" error occurs when Git cannot find the git-lfs executable.
- How do I fix "git-lfs filter-process: git-lfs: command not found"?
- This error occurs when Git tries to use Git LFS (Large File Storage) but the git-lfs command is not installed or not in your PATH. Install Git LFS and run 'git lfs install' to resolve it.
- What causes "git-lfs filter-process: git-lfs: command not found"?
- Git LFS is not installed on your system (most common) Git LFS is installed but 'git lfs install' was never run to configure Git On macOS, Homebrew-installed git-lfs is not visible to Xcode's bundled Git
- Is the "git-lfs filter-process: git-lfs: command not found" error serious?
- It is a medium-severity error โ more of a blocker than a risk. The steps above resolve it.
Official resources & further reading
- ๐Git Official Documentation
- ๐Installing Git Large File Storage - GitHub Docs(Official Docs)
- ๐Git LFS - Official Website(Official Docs)
- ๐Git LFS Installation Guide - GitHub Wiki(Official Docs)
- ๐ฌ
- ๐ฌ
- ๐ฌ
- ๐ฌ