Skip to content

Commit

Permalink
[Unity] Added leading slashes to ignored directories so that valid su…
Browse files Browse the repository at this point in the history
…bdirectories aren't ignored incorrectly (github#2980)

* 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
  • Loading branch information
LucasSteer authored and shiftkey committed Mar 23, 2019
1 parent 6d467f5 commit 56e3f5a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Unity.gitignore
Original file line number Diff line number Diff line change
@@ -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/
Expand Down

0 comments on commit 56e3f5a

Please sign in to comment.