From 37180d145c15d00937853217e08ef68d6a19635a Mon Sep 17 00:00:00 2001 From: raccoon Date: Tue, 21 May 2024 19:06:23 +0500 Subject: [PATCH] Added attributes for Git LFS --- .gitattributes | 43 ++++++++++++++++++++++++++++++++++++++++++- README.md | 12 +++++++----- 2 files changed, 49 insertions(+), 6 deletions(-) diff --git a/.gitattributes b/.gitattributes index 2a98934..7f4278f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,4 @@ -# * text=auto +* text=auto eol=lf # Unity *.anim text eol=lf @@ -23,3 +23,44 @@ *.csproj text eol=crlf *.shader text eol=crlf *.sln text eol=crlf + +# Blender +*.blend filter=lfs diff=lfs merge=lfs -text + +# Maya +*.ma text eol=lf +*.mb filter=lfs diff=lfs merge=lfs -text + +# Filmbox +# *your mileage may vary, since .fbx can be either in binary or ascii +# *.fbx text eol=lf +*.fbx filter=lfs diff=lfs merge=lfs -text + +# glTF +*.gltf text eol=lf +*.glb filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text + +# Images +*.bmp filter=lfs diff=lfs merge=lfs -text +*.jpeg filter=lfs diff=lfs merge=lfs -text +*.jpg filter=lfs diff=lfs merge=lfs -text +*.pdn filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.psd filter=lfs diff=lfs merge=lfs -text +*.tga filter=lfs diff=lfs merge=lfs -text +*.tif filter=lfs diff=lfs merge=lfs -text +*.tiff filter=lfs diff=lfs merge=lfs -text + +# Videos +*.avi filter=lfs diff=lfs merge=lfs -text +*.mkv filter=lfs diff=lfs merge=lfs -text +*.mov filter=lfs diff=lfs merge=lfs -text +*.mp4 filter=lfs diff=lfs merge=lfs -text +*.webm filter=lfs diff=lfs merge=lfs -text + +# Sound +*.mp3 filter=lfs diff=lfs merge=lfs -text +*.ogg filter=lfs diff=lfs merge=lfs -text +*.opus filter=lfs diff=lfs merge=lfs -text +*.wav filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md index 1da64c4..bce77fd 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ Omni-template for making VRChat content The template have: - Unity Editor settings for work with Git - Git settings for work with Unity Editor +- Git LFS attributes - Bootstrapper for automated SDK packages download - Compatible with CreatorCompanion (but it may fuck up line endings!) @@ -23,12 +24,13 @@ The repository have separate branches for separate content types, the only diffe > ``` ## How to use -1. Fork this repo from the branch you want -2. Open the project in Unity -3. Let VPM resolve all packages -4. Load an example and check that everything works without errors +1. `git init` a new repo from the branch you want +2. Init Git LFS with `git lfs install` +3. Open the project in Unity +4. Let VPM resolve all packages +5. Load an example and check that everything works without errors -> After opening the project in Unity Editor you might want to add **all** new untracked files to Git. +> After opening the project in Unity Editor you might want to add **all** new files to Git. ## License For project's license see [/LICENSE](/LICENSE) file.