Last active
April 9, 2017 13:08
-
-
Save thebeardphantom/982bab3b026571ab7970 to your computer and use it in GitHub Desktop.
Unity GitIgnore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ignore everything | |
/* | |
/*/ | |
# Inverse ignore some stuff | |
!/Assets/ | |
!/ProjectSettings/ | |
!.gitignore | |
# OS Stuff | |
.DS_Store | |
._* | |
.Spotlight-V100 | |
.Trashes | |
ehthumbs.db | |
Thumbs.db | |
$RECYCLE.BIN/ | |
Desktop.ini |
I use this for pretty much every project now, thanks
No problem!
This is the most sensible solution I've seen so far.
Question: Why have the OS stuff if you've already excluded it?
@GeekWithALife: I'm guessing it's so those OS-generated files will be still be ignored inside the inverse-ignored Assets
and ProjectSettings
folders.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A simpler gitignore that ignores EVERYTHING in the project and then afterwards un-ignores the stuff we care about.