2D Toolkit Forum

2D Toolkit => Support => Topic started by: ashclarke on March 11, 2013, 09:17:47 pm

Title: What should I make sure is included in source control?
Post 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!
Title: Re: What should I make sure is included in source control?
Post by: unikronsoftware on March 11, 2013, 09:43:29 pm
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.
Title: Re: What should I make sure is included in source control?
Post by: ashclarke on March 12, 2013, 10:20:33 pm
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:

Code: [Select]
obj/
Temp/
*.svd
*.suo
*.user
*.pidb
*.userprefs
*.unityproj
.DS_Store
Library/*
!Library/*.asset
Temp
*.pidb
build
Assets/TK2DROOT/tk2d_demo/*
Title: Re: What should I make sure is included in source control?
Post by: unikronsoftware on March 12, 2013, 10:24:38 pm
The demo folder is up to you. Do you need it?
2D Toolkit doesn't need the tk2d_demo folder to work.