Repo initialization
-
create an empty Unity project
-
change project settings (based on this Stack Overflow post)
- Go to Edit → Project Settings → Editor
- Change Version Control Mode to Visible Meta Files
- Change Asset Serialization Mode to Force Text
-
Save Project
-
git init .
-
git lfs init .
-
Add Unity.gitignore
-
git lfs track "*.jpg" "*.png" "*.psd" "*.mp3" "*.wav" "*.prefab" "*.fbx" "*.xcf" "*.obj"