filter.lfs.required Git 属性有什么作用?

What does the filter.lfs.required Git attribute do?

git lfs installfilter.lfs.required 属性设置为 true。此属性未在任何地方记录。它有什么作用?

啊,实际上这是一个通用的 Git 属性,由于某种原因未在 gitconfig but it is listed in gitattributes 中列出。

If a filter must succeed in order to make the stored contents usable, you can declare that the filter is required

所以我猜这只是意味着如果过滤器失败它不会中止。但是,我测试了将其设置为 false 并且 git clone即使只有 LFS 过滤器失败,启用 LFS 的 repo 仍然失败,所以老实说我不知道​​该设置的作用。

是大文件存储属性。允许您以最佳方式存储二进制文件。

https://git-lfs.github.com/