Created
September 12, 2025 11:02
-
-
Save mrwellmann/f746d92467df991aebb904271db0cd2a to your computer and use it in GitHub Desktop.
Template .gitattributes Template for a Unity - VR Builder Project
This file contains hidden or 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 & VR Builder Template .gitattributes | |
| ############################################ | |
| # Note: | |
| # When making changes to .gitattributes, files must be un-staged and re-staged for changes to be applied: | |
| # git reset HEAD -- | |
| # git add -A | |
| # Changes can then be verified using: | |
| # git lfs status | grep LFS: | |
| # Define macros (only works in top-level gitattributes files) | |
| [attr]lfs filter=lfs diff=lfs merge=lfs -text | |
| [attr]unity-json eol=lf linguist-language=json | |
| [attr]unity-yaml merge=unityyamlmerge eol=lf linguist-language=yaml | |
| # Optionally collapse Unity YAML files on GitHub diffs | |
| # [attr]unity-yaml merge=unityyamlmerge text linguist-language=yaml linguist-generated | |
| # Unity source files | |
| *.cginc text | |
| *.compute text linguist-language=hlsl | |
| *.cs text diff=csharp | |
| *.hlsl text linguist-language=hlsl | |
| *.raytrace text linguist-language=hlsl | |
| *.shader text | |
| # Unity JSON files | |
| *.asmdef unity-json | |
| *.asmref unity-json | |
| *.index unity-json | |
| *.inputactions unity-json | |
| *.shadergraph unity-json | |
| *.shadersubgraph unity-json | |
| # Unity UI Toolkit files | |
| *.tss text diff=css linguist-language=css | |
| *.uss text diff=css linguist-language=css | |
| *.uxml text linguist-language=xml linguist-detectable | |
| # Unity YAML files | |
| *.anim unity-yaml | |
| *.asset unity-yaml | |
| *.brush unity-yaml | |
| *.controller unity-yaml | |
| *.flare unity-yaml | |
| *.fontsettings unity-yaml | |
| *.giparams unity-yaml | |
| *.guiskin unity-yaml | |
| *.lighting unity-yaml | |
| *.mask unity-yaml | |
| *.mat unity-yaml | |
| *.meta unity-yaml | |
| *.mixer unity-yaml | |
| *.overrideController unity-yaml | |
| *.playable unity-yaml | |
| *.prefab unity-yaml | |
| *.preset unity-yaml | |
| *.renderTexture unity-yaml | |
| *.scenetemplate unity-yaml | |
| *.shadervariants unity-yaml | |
| *.signal unity-yaml | |
| *.spriteatlas unity-yaml | |
| *.spriteatlasv2 unity-yaml | |
| *.terrainlayer unity-yaml | |
| *.unity unity-yaml | |
| # "physic" for 3D but "physics" for 2D | |
| *.physicMaterial unity-yaml | |
| *.physicsMaterial2D unity-yaml | |
| # Exclude from GitHub stats and diffs: third-party plugins, packages lock file | |
| Assets/Plugins/** linguist-generated | |
| Packages/packages-lock.json linguist-generated | |
| # Unity LFS | |
| *.cubemap lfs | |
| *.unitypackage lfs | |
| # 3D models | |
| *.3dm lfs | |
| *.3ds lfs | |
| *.blend lfs | |
| *.blend1 lfs | |
| *.c4d lfs | |
| *.collada lfs | |
| *.dae lfs | |
| *.dxf lfs | |
| *.FBX lfs | |
| *.fbx lfs | |
| *.jas lfs | |
| *.lws lfs | |
| *.lxo lfs | |
| *.ma lfs | |
| *.max lfs | |
| *.mb lfs | |
| *.obj lfs | |
| *.ply lfs | |
| *.skp lfs | |
| *.stl lfs | |
| *.ztl lfs | |
| # Audio | |
| *.aif lfs | |
| *.aiff lfs | |
| *.it lfs | |
| *.mod lfs | |
| *.mp3 lfs | |
| *.ogg lfs | |
| *.s3m lfs | |
| *.wav lfs | |
| *.xm lfs | |
| # Video | |
| *.asf lfs | |
| *.avi lfs | |
| *.flv lfs | |
| *.mov lfs | |
| *.mp4 lfs | |
| *.mpeg lfs | |
| *.mpg lfs | |
| *.ogv lfs | |
| *.wmv lfs | |
| # Images | |
| *.bmp lfs | |
| *.exr lfs | |
| *.gif lfs | |
| *.hdr lfs | |
| *.iff lfs | |
| *.jpeg lfs | |
| *.jpg lfs | |
| *.pict lfs | |
| *.png lfs | |
| *.psd lfs | |
| *.tga lfs | |
| *.tif lfs | |
| *.tiff lfs | |
| *.webp lfs | |
| # Compressed Archive | |
| *.7z lfs | |
| *.bz2 lfs | |
| *.gz lfs | |
| *.rar lfs | |
| *.tar lfs | |
| *.zip lfs | |
| # Compiled Dynamic Library | |
| *.dll lfs | |
| *.pdb lfs | |
| *.so lfs | |
| # Fonts | |
| *.otf lfs | |
| *.ttf lfs | |
| # Executable/Installer | |
| *.apk lfs | |
| *.exe lfs | |
| # Documents | |
| *.pdf lfs | |
| # ETC | |
| *.a lfs | |
| *.reason lfs | |
| *.rns lfs | |
| # Spine export file for Unity | |
| *.skel.bytes lfs | |
| # Exceptions for .asset files such as lightning pre-baking | |
| LightingData.asset binary | |
| # Source https://github.com/gitattributes/gitattributes/blob/master/Unity.gitattributes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment