我用一些图像文件创建了一个仓库。我有要从 lfs 中排除的 .gitignore 和 .gitattributes。所以我需要通过 lfs 跟踪所有文件,而不是 .gitignore 和 .gitattributes。
我正在使用 Sourcetree,我在 .gitattributes 中尝试过:
.gitignore text
.gitattributes text
* filter=lfs diff=lfs merge=lfs -text
Run Code Online (Sandbox Code Playgroud)
但是我所有的文件都被 lfs 跟踪。