From 7664a1b1868094ddcb3b5b7a9040b0c37b5070d0 Mon Sep 17 00:00:00 2001 From: SHOUTING_PIRATE Date: Thu, 27 Mar 2025 14:04:33 +0000 Subject: [PATCH] Update .gitignore --- .gitignore | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index dda4ad3..f35d6f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,21 @@ -# Unity Project - Optimized .gitignore -# Updated from: https://github.com/github/gitignore/blob/main/Unity.gitignore +# Unity Project - Refined .gitignore +# Updated to track only Assets/Scripts and its related `.meta` files # Ignore everything /* -# Allow specific folders and files +# Allow the Assets folder and its .meta files !/Assets/ -!/Assets/Scripts/ +!/Assets/**/*.meta -# Ignore unnecessary Unity directories and files +# Ignore everything else in the Assets folder +/Assets/* + +# Allow only the Scripts folder and its .meta files +!/Assets/Scripts/ +!/Assets/Scripts/**/*.meta + +# Unity-generated folders and files [Ll]ibrary/ [Tt]emp/ [Oo]bj/ @@ -16,11 +23,11 @@ [Ll]ogs/ [Uu]ser[Ss]ettings/ -# Ignore large or sensitive directories +# Large or sensitive directories [Mm]emoryCaptures/ [Rr]ecordings/ -# Development tools +# Development tools and IDE-specific files .vs/ .gradle/ ExportedObj/ @@ -34,7 +41,7 @@ ExportedObj/ *.booproj *.VC.db -# Unity-generated meta files +# Debugging or unnecessary `.meta` files *.pidb.meta *.pdb.meta *.mdb.meta