当前位置: 首页 > 工具软件 > ViewGit > 使用案例 >

git clone lfs问题记录

公冶谦
2023-12-01

在用Git去clone的时候遇到以下问题:

Use git lfs logs last to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: data/processed/career_builder/embedding.npy: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.

解决方案:

// Skip smudge - We'll download binary files later in a faster batch
git lfs install --skip-smudge

// Do git clone here
git clone ...

// Fetch all the binary files in the new clone
git lfs pull

// Reinstate smudge
git lfs install --force

参考:

https://github.com/git-lfs/git-lfs/issues/911
https://kerwenzhang.github.io/git/2020/04/14/Git-LFS-issue/

 类似资料: