Skip to content

Instantly share code, notes, and snippets.

Embed
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
.DS_Store
# Enable Meta Files in in Unity -> Edit -> Project Settings -> Editor
# or you will mess up your prefabs, models and materials when
# ignoring Library/
Library/
# MonoDev projects
*.csproj
# MonoDev Parser Information DataBase
*.pidb
# MonoDev solutions
*.sln
Temp/
build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.