Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
I went to Recreate-Hell and back after having used an insufficient .gitignore file with Unity3d (I lost all metadata for all my prefabs, models and materials). Here's a .gitignore file that will save you from the troubles I had. Note that you must enable meta data files as noted in the file.
# .gitignore file to use with Unity3d projects on a mac
# annoying, autogenerated, hidden file used by Finder
# Enable Meta Files in in Unity -> Edit -> Project Settings -> Editor
# or you will mess up your prefabs, models and materials when
# ignoring Library/
# MonoDev projects
# MonoDev Parser Information DataBase
# MonoDev solutions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment