2D Toolkit Forum
2D Toolkit => Support => Topic started by: ashclarke on March 11, 2013, 09:17:47 pm
-
Hi, I am using Git as source control for my project and I was wondering what you guys suggest for putting in the .gitignore file and what definitely should not be excluded.
Does anyone have any experience with this?
So far I have played it safe and added only:
Assets/TK2DROOT/tk2d_demo/*
Thanks!
-
Make sure meta files are turned on. Your project won't work properly otherwise.
This doc lists the folders which should be version controlled. Assets and ProjectSettings.
http://docs.unity3d.com/Documentation/Manual/ExternalVersionControlSystemSupport.html
Once again, I have to stress the importance of enabling meta files.
I personally find it much nicer to use text serialization too, but that is entirely optional.
-
Thanks for the link. I was also wondering, when you import the assets from the store, do you need to import all? Is the demo folder required?
For my gitignore, I ended up with:
obj/
Temp/
*.svd
*.suo
*.user
*.pidb
*.userprefs
*.unityproj
.DS_Store
Library/*
!Library/*.asset
Temp
*.pidb
build
Assets/TK2DROOT/tk2d_demo/*
-
The demo folder is up to you. Do you need it?
2D Toolkit doesn't need the tk2d_demo folder to work.