Last active
June 14, 2024 10:06
-
-
Save inikitin/7dff06ef9b776b2d9ab92983f525c256 to your computer and use it in GitHub Desktop.
.gitattributes for Unity with case-insensitive Git LFS extension filters
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
# Unity specific .gitattributes | |
* text=auto | |
*.cs diff=csharp text | |
*.cginc text | |
*.shader text | |
# Unity YAML | |
*.anim -text merge=unityyamlmerge diff | |
*.asset -text merge=unityyamlmerge diff | |
*.controller -text merge=unityyamlmerge diff | |
*.mat -text merge=unityyamlmerge diff | |
*.meta -text merge=unityyamlmerge diff | |
*.physicMaterial -text merge=unityyamlmerge diff | |
*.physicsMaterial2D -text merge=unityyamlmerge diff | |
*.prefab -text merge=unityyamlmerge diff | |
*.unity -text merge=unityyamlmerge diff | |
# Unity LFS | |
*.cubemap filter=lfs diff=lfs merge=lfs -text | |
*.unitypackage filter=lfs diff=lfs merge=lfs -text | |
# 2D formats | |
*.[aA][iI] filter=lfs diff=lfs merge=lfs -text | |
*.[bB][mM][pP] filter=lfs diff=lfs merge=lfs -text | |
*.[dD][dD][sS] filter=lfs diff=lfs merge=lfs -text | |
*.[eE][xX][rR] filter=lfs diff=lfs merge=lfs -text | |
*.[gG][iI][fF] filter=lfs diff=lfs merge=lfs -text | |
*.[hH][dD][rR] filter=lfs diff=lfs merge=lfs -text | |
*.[iI][fF][fF] filter=lfs diff=lfs merge=lfs -text | |
*.[jJ][pP][eE][gG] filter=lfs diff=lfs merge=lfs -text | |
*.[jJ][pP][gG] filter=lfs diff=lfs merge=lfs -text | |
*.[pP][iI][cC][tT] filter=lfs diff=lfs merge=lfs -text | |
*.[pP][nN][gG] filter=lfs diff=lfs merge=lfs -text | |
*.[pP][sS][dD] filter=lfs diff=lfs merge=lfs -text | |
*.[tT][gG][aA] filter=lfs diff=lfs merge=lfs -text | |
*.[tT][iI][fF] filter=lfs diff=lfs merge=lfs -text | |
*.[tT][iI][fF][fF] filter=lfs diff=lfs merge=lfs -text | |
# 3D formats | |
*.3[dD][mM] filter=lfs diff=lfs merge=lfs -text | |
*.3[dD][sS] filter=lfs diff=lfs merge=lfs -text | |
*.[aA][bB][cC] filter=lfs diff=lfs merge=lfs -text | |
*.[bB][lL][eE][nN][dD] filter=lfs diff=lfs merge=lfs -text | |
*.[cC]4[dD] filter=lfs diff=lfs merge=lfs -text | |
*.[cC][oO][lL][lL][aA][dD][aA] filter=lfs diff=lfs merge=lfs -text | |
*.[dD][aA][eE] filter=lfs diff=lfs merge=lfs -text | |
*.[dD][xX][fF] filter=lfs diff=lfs merge=lfs -text | |
*.[fF][bB][xX] filter=lfs diff=lfs merge=lfs -text | |
*.[jJ][aA][sS] filter=lfs diff=lfs merge=lfs -text | |
*.[lL][wW][oO] filter=lfs diff=lfs merge=lfs -text | |
*.[lL][wW][oO]2 filter=lfs diff=lfs merge=lfs -text | |
*.[lL][wW][sS] filter=lfs diff=lfs merge=lfs -text | |
*.[lL][xX][oO] filter=lfs diff=lfs merge=lfs -text | |
*.[mM][aA] filter=lfs diff=lfs merge=lfs -text | |
*.[mM][aA][xX] filter=lfs diff=lfs merge=lfs -text | |
*.[mM][bB] filter=lfs diff=lfs merge=lfs -text | |
*.[oO][bB][jJ] filter=lfs diff=lfs merge=lfs -text | |
*.[pP][lL][yY] filter=lfs diff=lfs merge=lfs -text | |
*.[sS][kK][pP] filter=lfs diff=lfs merge=lfs -text | |
*.[sS][tT][lL] filter=lfs diff=lfs merge=lfs -text | |
*.[zZ][tT][lL] filter=lfs diff=lfs merge=lfs -text | |
# Audio formats | |
*.[aA][iI][fF] filter=lfs diff=lfs merge=lfs -text | |
*.[aA][iI][fF][fF] filter=lfs diff=lfs merge=lfs -text | |
*.[bB][aA][nN][kK] filter=lfs diff=lfs merge=lfs -text | |
*.[iI][tT] filter=lfs diff=lfs merge=lfs -text | |
*.[mM][oO][dD] filter=lfs diff=lfs merge=lfs -text | |
*.[mM][pP]3 filter=lfs diff=lfs merge=lfs -text | |
*.[oO][gG][gG] filter=lfs diff=lfs merge=lfs -text | |
*.[sS]3[mM] filter=lfs diff=lfs merge=lfs -text | |
*.[wW][aA][vV] filter=lfs diff=lfs merge=lfs -text | |
*.[xX][mM] filter=lfs diff=lfs merge=lfs -text | |
# Video formats | |
*.[aA][sS][fF] filter=lfs diff=lfs merge=lfs -text | |
*.[aA][vV][iI] filter=lfs diff=lfs merge=lfs -text | |
*.[fF][lL][vV] filter=lfs diff=lfs merge=lfs -text | |
*.[mM][oO][vV] filter=lfs diff=lfs merge=lfs -text | |
*.[mM][pP]4 filter=lfs diff=lfs merge=lfs -text | |
*.[mM][pP][eE][gG] filter=lfs diff=lfs merge=lfs -text | |
*.[mM][pP][gG] filter=lfs diff=lfs merge=lfs -text | |
*.[oO][gG][vV] filter=lfs diff=lfs merge=lfs -text | |
*.[wW][mM][vV] filter=lfs diff=lfs merge=lfs -text | |
# Build | |
*.[dD][lL][lL] filter=lfs diff=lfs merge=lfs -text | |
*.[mM][dD][bB] filter=lfs diff=lfs merge=lfs -text | |
*.[pP][dD][bB] filter=lfs diff=lfs merge=lfs -text | |
*.[sS][oO] filter=lfs diff=lfs merge=lfs -text | |
# Packaging | |
*.7[zZ] filter=lfs diff=lfs merge=lfs -text | |
*.[bB][zZ]2 filter=lfs diff=lfs merge=lfs -text | |
*.[gG][zZ] filter=lfs diff=lfs merge=lfs -text | |
*.[rR][aA][rR] filter=lfs diff=lfs merge=lfs -text | |
*.[tT][aA][rR] filter=lfs diff=lfs merge=lfs -text | |
*.[tT][aA][rR].[gG][zZ] filter=lfs diff=lfs merge=lfs -text | |
*.[zZ][iI][pP] filter=lfs diff=lfs merge=lfs -text | |
# Fonts | |
*.[oO][tT][fF] filter=lfs diff=lfs merge=lfs -text | |
*.[tT][tT][fF] filter=lfs diff=lfs merge=lfs -text | |
# Documents | |
*.[pP][dD][fF] filter=lfs diff=lfs merge=lfs -text | |
# 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
Thank you!