Error in Git clone or pod install: smudge filter LFS failed clone succeeded, but checkout failed

encountered the following problem when git clone :

git-lfs smudge '第三方库某个文件': git-lfs: command not found
error: external filter 'git-lfs smudge %f' failed 127
error: external filter 'git-lfs smudge %f' failed
fatal: 第三方库某个文件: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

basically means that a file is too large to be checked out.


solve :
execute command :brew install git-lfs

reason :
git-lfs solves the problem that a single file is too big, specific can be below baidu.

Read More: