Git LFS track folder recursively

后端 未结 2 895
一生所求
一生所求 2021-01-30 15:19

Is it possible to track recursively all files contained in a folder and its subfolders with Git LFS ?

I would like to do something like this :

git lfs tr         


        
2条回答
  •  -上瘾入骨i
    2021-01-30 16:03

    Use git lfs track "myfolder/**", with quotes to avoid the shell already expanding the pattern. All that the track command does is to write to .gitattributes, which in turn uses (almost) the same pattern matching rules as .gitignore, see the PATTERN FORMAT description.

提交回复
热议问题