Skip to content

Instantly share code, notes, and snippets.

@ertanturan
Created July 10, 2023 22:14
Show Gist options
  • Save ertanturan/7b7e4eaefe1d3ab0d253783c4eed8007 to your computer and use it in GitHub Desktop.
Save ertanturan/7b7e4eaefe1d3ab0d253783c4eed8007 to your computer and use it in GitHub Desktop.
Git LFS Track command for most common file types used in Unity
git lfs track "*.unity" "*.prefab" "*.mat" "*.asset" "*.fbx" "*.wav" "*.tga" "*.psd" "*.cs" "*.png" "*.jpg" "*.jpeg" "*.bmp" "*.tif" "*.tiff" "*.exr" "*.hdr" "*.fbx" "*.blend" "*.obj" "*.dae" "*.3ds" "*.stl" "*.ply" "*.glb" "*.gltf" "*.wav" "*.mp3" "*.ogg" "*.flac" "*.aac" "*.mp4" "*.mov" "*.avi" "*.mkv" "*.psd" "*.tga" "*.exr" "*.hdr" "*.zip" "*.rar" "*.7z" "*.tar" "*.gz" "*.dll" "*.so" "*.dylib" "*.apk" "*.ipa" "*.ttf" "*.otf" "*.pdf" "*.doc" "*.xls" "*.ppt" "*.csv" "*.mov" "*.avi" "*.mkv" "*.ogg" "*.ogv" "*.webm" "*.flv" "*.swf" "*.psd" "*.ai" "*.sketch" "*.mp3" "*.ogg" "*.wav" "*.aif" "*.aac" "*.fbx" "*.prefab" "*.mat" "*.asset" "*.controller" "*.unitypackage"
@ertanturan
Copy link
Author

After you open git bash in your repository and initialize git lfs for you repo, copy and paste this to the bash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment