Created
March 16, 2023 09:07
-
-
Save iamWing/25a13f610979dc2d9a43363018fbea67 to your computer and use it in GitHub Desktop.
.gitattributes file for Unity projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Macro for Unity YAML-based asset files. | |
[attr]unityyaml merge=unityyamlmerge diff -text | |
# Macro for all binary files that should use Git LFS. | |
[attr]lfs filter=lfs diff=lfs merge=lfs -text | |
# Default to auto-normalized line endings. | |
* text=auto | |
# Code | |
*.cs diff=csharp text | |
*.hlsl text | |
*.shader text | |
# Unity Text Assets | |
*.meta unityyaml | |
*.unity unityyaml | |
*.asset unityyaml | |
*.prefab unityyaml | |
*.mat unityyaml | |
*.anim unityyaml | |
*.controller unityyaml | |
*.overrideController unityyaml | |
*.physicMaterial unityyaml | |
*.physicsMaterial2D unityyaml | |
*.playable unityyaml | |
*.mask unityyaml | |
*.brush unityyaml | |
*.flare unityyaml | |
*.fontsettings unityyaml | |
*.guiskin unityyaml | |
*.giparams unityyaml | |
*.renderTexture unityyaml | |
*.spriteatlas unityyaml | |
*.terrainlayer unityyaml | |
*.mixer unityyaml | |
*.shadervariants unityyaml | |
*.preset unityyaml | |
*.asmdef -text diff | |
# Unity Binary Assets | |
*.cubemap lfs | |
*.unitypackage lfs | |
# Note: Unity terrain assets must have "-Terrain" suffix. | |
*-[Tt]errain.asset -unityyaml lfs | |
# Note: Unity navmesh assets must have "-NavMesh" suffix. | |
*-[Nn]av[Mm]esh.asset -unityyaml lfs | |
# Font | |
*.otf lfs | |
*.ttf lfs | |
# Image | |
*.jpg lfs | |
*.jpeg lfs | |
*.png lfs | |
*.apng lfs | |
*.atsc lfs | |
*.gif lfs | |
*.bmp lfs | |
*.exr lfs | |
*.tga lfs | |
*.tiff lfs | |
*.tif lfs | |
*.iff lfs | |
*.pict lfs | |
*.dds lfs | |
*.xcf lfs | |
*.leo lfs | |
*.kra lfs | |
*.kpp lfs | |
*.clip lfs | |
*.webm lfs | |
*.webp lfs | |
*.svg lfs | |
*.svgz lfs | |
*.psd lfs | |
*.afphoto lfs | |
*.afdesign lfs | |
*.hdr lfs | |
# Audio | |
*.mp3 lfs | |
*.ogg lfs | |
*.wav lfs | |
*.aiff lfs | |
*.aif lfs | |
*.mod lfs | |
*.it lfs | |
*.s3m lfs | |
*.xm lfs | |
# Video | |
*.mov lfs | |
*.avi lfs | |
*.asf lfs | |
*.mpg lfs | |
*.mpeg lfs | |
*.mp4 lfs | |
*.flv lfs | |
*.ogv lfs | |
*.wmv lfs | |
# 3D | |
*.fbx lfs | |
*.obj lfs | |
*.max lfs | |
*.blender lfs | |
*.blend lfs | |
*.dae lfs | |
*.mb lfs | |
*.ma lfs | |
*.3ds lfs | |
*.dfx lfs | |
*.c4d lfs | |
*.lwo lfs | |
*.lwo2 lfs | |
*.abc lfs | |
*.3dm lfs | |
*.bin lfs | |
*.glb lfs | |
# Executables | |
*.exe lfs | |
*.dll lfs | |
*.so lfs | |
*.pdb lfs | |
*.mdb lfs | |
# Packaging | |
*.zip lfs | |
*.7z lfs | |
*.gz lfs | |
*.rar lfs | |
*.tar lfs | |
# Collapse Unity-generated files on GitHub | |
*.asset linguist-generated | |
*.mat linguist-generated | |
*.meta linguist-generated | |
*.prefab linguist-generated | |
*.unity linguist-generated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rename the file to
.gitattributes
and place it on your project root.