Remove Git lfs link to file and add it to git directly
问题 I need to remove a Git LFS file pointer, and add the file directly to Git. I have a filter in .gitattributes to match certain files: test/**/*.py filter=lfs diff=lfs merge=lfs -text How can I modify it to exclude 1 file from this pattern? I tried something like this: test/**/*.py !test/my_dir/my_file.py filter=lfs diff=lfs merge=lfs -text but it doesn't seem to work... git says that there is no such file 回答1: The .gitattributes file works similarly to the .gitignore file regarding precedence,