相关疑难解决方法(0)

删除Git lfs链接到文件并直接添加到git

我需要删除 Git LFS 文件指针,并将文件直接添加到 Git。

我在 .gitattributes 中有一个过滤器来匹配某些文件:

test/**/*.py filter=lfs diff=lfs merge=lfs -text
Run Code Online (Sandbox Code Playgroud)

如何修改它以从此模式中排除 1 个文件?

我尝试过这样的事情:

test/**/*.py !test/my_dir/my_file.py filter=lfs diff=lfs merge=lfs -text
Run Code Online (Sandbox Code Playgroud)

但它似乎不起作用...git说没有这样的文件

git gitattributes git-lfs

2
推荐指数
1
解决办法
1893
查看次数

标签 统计

git ×1

git-lfs ×1

gitattributes ×1