Skip to content

Instantly share code, notes, and snippets.

Last active April 9, 2017 13:08
  • Star 16 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save thebeardphantom/982bab3b026571ab7970 to your computer and use it in GitHub Desktop.
Unity GitIgnore
# Ignore everything
# Inverse ignore some stuff
# OS Stuff
Copy link

A simpler gitignore that ignores EVERYTHING in the project and then afterwards un-ignores the stuff we care about.

Copy link

I use this for pretty much every project now, thanks

Copy link

No problem!

Copy link

This is the most sensible solution I've seen so far.
Question: Why have the OS stuff if you've already excluded it?

Copy link

emlowry commented Sep 3, 2015

@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