Skip to content

Instantly share code, notes, and snippets.

@kaspermunck
Created April 10, 2013 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaspermunck/5353559 to your computer and use it in GitHub Desktop.
Save kaspermunck/5353559 to your computer and use it in GitHub Desktop.
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