]> source.dussan.org Git - gitignore.git/commitdiff
[Unity] Added leading slashes to ignored directories so that valid subdirectories...
authorLucas Steer <LucasSteer@users.noreply.github.com>
Sat, 23 Mar 2019 18:29:17 +0000 (14:29 -0400)
committerBrendan Forster <brendan@github.com>
Sat, 23 Mar 2019 18:29:17 +0000 (15:29 -0300)
* Added leading slashes to ignored directories so that valid subdirectories aren't ignored incorrectly

* Added comment to recommend .gitignore placement; added leading slash for AssetStoreTools rule

* Added a leading slash to never ignore .meta files in the root Asset folder

Unity.gitignore

index f9316d47d9e3be09c447aedbe677aeec8ab944f0..2918c65da4a5a4b80d98d7d3a5dacdad7ee59423 100644 (file)
@@ -1,15 +1,17 @@
-[Ll]ibrary/
-[Tt]emp/
-[Oo]bj/
-[Bb]uild/
-[Bb]uilds/
-[Ll]ogs/
+# This .gitignore file should be placed at the root of your Unity project directory
+
+/[Ll]ibrary/
+/[Tt]emp/
+/[Oo]bj/
+/[Bb]uild/
+/[Bb]uilds/
+/[Ll]ogs/
 
 # Never ignore Asset meta data
-![Aa]ssets/**/*.meta
+!/[Aa]ssets/**/*.meta
 
 # Uncomment this line if you wish to ignore the asset store tools plugin
-# [Aa]ssets/AssetStoreTools*
+# /[Aa]ssets/AssetStoreTools*
 
 # TextMesh Pro files
 [Aa]ssets/TextMesh*Pro/