Track all files in a directory to git LFS but ignore a single folder present in that directory
Asked Answered
A

1

11

Say I have a directory "my_dir" and some files in it. And I have a subdirectory in it "my_dir_subdir".

File structure: "my_dir/my_dir_subdir".

How to track my_dir via git LFS but not track "my_dir/my_dir_subdir/" via git LFS

Adolf answered 8/6, 2017 at 6:28 Comment(0)
F
10

Seems like you can disable a certain rule with preceding it with a hyphen:

*.png filter=lfs diff=lfs merge=lfs -text
Dependencies/*.png -filter=lfs -diff=lfs -merge=lfs -text
Fike answered 18/8, 2018 at 16:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.