Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# =============== #
# Unity generated #
# =============== #
[Tt]emp/
[Oo]bj/
[Bb]uild
/[Ll]ibrary/
sysinfo.txt
*.stackdump
# ============================================= #
# Visual Studio / MonoDevelop / Rider generated #
# ============================================= #
[Ee]xported[Oo]bj/
.vs/
/*.userprefs
/*.csproj
/*.pidb
/*.suo
/*.sln*
/*.user
/*.unityproj
/*.booproj
/.idea*/
# ============ #
# OS generated #
# ============ #
.DS_Store*
._*
.Spotlight-V100
.Trashes
ehthumbs.db
[Tt]humbs.db
[Dd]esktop.ini
@kleber-swf

This comment has been minimized.

Show comment
Hide comment
@kleber-swf

kleber-swf Dec 3, 2014

Definitive .gitignore for Unity projects
More info at: http://kleber-swf.com/the-definitive-gitignore-for-unity-projects/

Owner

kleber-swf commented Dec 3, 2014

Definitive .gitignore for Unity projects
More info at: http://kleber-swf.com/the-definitive-gitignore-for-unity-projects/

@kleber-swf

This comment has been minimized.

Show comment
Hide comment
@kleber-swf

kleber-swf Sep 11, 2015

Updated to support the new Unity 5.2 Visual Studio Integration

Owner

kleber-swf commented Sep 11, 2015

Updated to support the new Unity 5.2 Visual Studio Integration

@puzzlekings

This comment has been minimized.

Show comment
Hide comment
@puzzlekings

puzzlekings Sep 22, 2015

That's really cool - many thanks!

That's really cool - many thanks!

@VoodaGod

This comment has been minimized.

Show comment
Hide comment

thanks!

@laszlar

This comment has been minimized.

Show comment
Hide comment
@laszlar

laszlar 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 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?

@kleber-swf

This comment has been minimized.

Show comment
Hide comment
@kleber-swf

kleber-swf May 13, 2016

@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!

Owner

kleber-swf commented May 13, 2016

@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!

@Zebrakiller

This comment has been minimized.

Show comment
Hide comment
@Zebrakiller

Zebrakiller May 21, 2016

What kind of file do I make?

What kind of file do I make?

@leonidumanskiy

This comment has been minimized.

Show comment
Hide comment
@leonidumanskiy

leonidumanskiy Jun 12, 2016

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

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

@njt1982

This comment has been minimized.

Show comment
Hide comment
@njt1982

njt1982 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.

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.

@kleber-swf

This comment has been minimized.

Show comment
Hide comment
@kleber-swf

kleber-swf Aug 1, 2016

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

Owner

kleber-swf commented Aug 1, 2016

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

@MiraiTunga

This comment has been minimized.

Show comment
Hide comment
@MiraiTunga

MiraiTunga Jun 11, 2017

@kleber-swf is this supposed to ignore everything in the library folder ?

Still getting paths like (see bellow) being tracked in source tree

\UnityProject\Library\metadata\cb\cb62af8299528774697e1e79af2e473d

@kleber-swf is this supposed to ignore everything in the library folder ?

Still getting paths like (see bellow) being tracked in source tree

\UnityProject\Library\metadata\cb\cb62af8299528774697e1e79af2e473d

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