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

后端 未结 1 1211
情深已故
情深已故 2021-02-14 06:36

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

1条回答
  •  青春惊慌失措
    2021-02-14 07:18

    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
    

    0 讨论(0)
提交回复
热议问题