Hello Guest

Author Topic: What should I make sure is included in source control?  (Read 3814 times)

ashclarke

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
What should I make sure is included in source control?
« 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!
« Last Edit: March 11, 2013, 09:38:44 pm by ashclarke »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: What should I make sure is included in source control?
« Reply #1 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.

ashclarke

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: What should I make sure is included in source control?
« Reply #2 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/*

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: What should I make sure is included in source control?
« Reply #3 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.