Skip to content

Instantly share code, notes, and snippets.

@liamzebedee
Created October 20, 2023 04:25
Show Gist options
  • Save liamzebedee/aa73134228650c836564a949e31e0cc3 to your computer and use it in GitHub Desktop.
Save liamzebedee/aa73134228650c836564a949e31e0cc3 to your computer and use it in GitHub Desktop.
`git lfs` track all project files in a Unity project

find all files larger than 1MB and output their file extensions

find . -type f -size +1M -exec sh -c 'echo "${1##*.}"' _ {} \; | sort | uniq -c

track these extensions in git lfs

git lfs track "*.bmp" "*.cubemap" "*.dae" "*.fbx" "*.glb" "*.jpg" "*.mp4" "*.png" "*.psd" "*.tga" "*.tif" "*.unity" "*.wav"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment