gitignore by file size?

前端 未结 5 683
难免孤独
难免孤独 2020-12-04 10:14

I\'m trying to implement Git to manage creative assets (Photoshop, Illustrator, Maya, etc.), and I\'d like to exclude files from Git based on file size rather than extension

5条回答
  •  悲哀的现实
    2020-12-04 10:59

    I wanted to also offer a Windows version of this as well.

    forfiles /s /c "cmd /q /c if @fsize GTR 1073741824 echo @relpath" >> .gitignore
    

提交回复
热议问题