Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# =============== #
# Unity generated #
# =============== #
# ============================================= #
# Visual Studio / MonoDevelop / Rider generated #
# ============================================= #
# ============ #
# OS generated #
# ============ #

Definitive .gitignore for Unity projects
More info at:


Updated to support the new Unity 5.2 Visual Studio Integration

That's really cool - many thanks!


laszlar commented Mar 23, 2016

I know this is kinda older, but thank you for doing this! The standard Unity ignore file on GitHub doesn't include the OS generated stuff. I wonder if this will include Desktop.ini?


@laszlar: Their rules don't allow to put SO files. The reason is that you should have a global gitignore file with your system's globally ignored files. Which is good, but it's not guaranteed that all of your developers have this setup, specially when you work on a big team remotely. And yes! I put the Desktop.ini as you suggested. Thanks!

What kind of file do I make?

"Icon" rule is the dumbest thing ever. We spent 30 minutes trying to understand why our Icons are not getting commited.

njt1982 commented Jun 27, 2016

Just had the same issue as @leonidumanskiy - An entire folder of icons missing from my project repo. Lucky I noticed before I lost anything.


Sorry for that :/ This was for some OSX folders.
I removed the Icons/ rule and added Rider .idea* rule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment