Created
January 28, 2012 17:12
-
-
Save mduheaume/1695068 to your computer and use it in GitHub Desktop.
Git ignore file for unity projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Temp/ | |
Library/ | |
obj/ | |
*.svd | |
!Library/*.asset | |
!Library/AssetImportState | |
!Library/AssetVersioning.db | |
!Library/BuildPlayer.prefs | |
!Library/ScriptMapper | |
!Library/assetservercachev3 | |
!Library/expandedItems | |
!Library/guidmapper | |
!Library/unity default resources | |
!Library/unity editor resources | |
/Project/Project.userprefs | |
/Project/Assembly-CSharp.csproj | |
/Project/Assembly-CSharp.pidb | |
/Project/Assembly-CSharp-Editor.csproj | |
/Project/Assembly-CSharp-Editor.pidb | |
/Project/Assembly-CSharp-Editor-vs.csproj | |
/Project/Assembly-CSharp-firstpass.csproj | |
/Project/Assembly-CSharp-firstpass.pidb | |
/Project/Assembly-CSharp-firstpass-vs.csproj | |
/Project/Assembly-CSharp-vs.csproj | |
/Project/Assembly-UnityScript-firstpass.pidb | |
/Project/Assembly-UnityScript-firstpass.unityproj | |
/Project/Assembly-UnityScript-firstpass-vs.unityproj | |
/Project/Project.suo |
Besides what ashclarke noticed, also there's an error in your .gitignore:
In order to "unignore" stuff inside the library, you'd have to use Library/*
instead of Library/
. Right now you are just ignoring the whole Library.
More explanation at http://stackoverflow.com/questions/5533050/gitignore-exclude-folder-but-include-specific-subfolder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mduheaume
Is there a reason you keep the files in the library folder, that are not
.asset
files too?I've seen other examples where they ignore these e.g.
http://www.chrisdanielson.com/2011/06/04/unity3d-projects-version-control-git/
And others where they don't.
Currently for library, I have:
It's all a bit confusing for newbies! :]