Unity creates and deletes meta files for folders inside the Asset folder.
That can create an annoying situation when using version control (that you can skip an
to include meta files along with assets, simply add the following after your exclusions:
!*.*.meta
Here is a sample of my .gitignore:
# Ignore the following files
# --------------------------
# Unity3D specific
#
**/Library/*
**/Temp/*
**/*.csproj
**/*.unityproj
**/*.sln
**/*.userprefs
**/*.pidb
# include meta files
!*.*.meta
I place this at the folder with the git repository structure, so my project structure would look similar to:
root folder /
- Unity Project/
- .gitignore
- .git/
- ProjectFolder/
- {all project related data}
hope that helps.