Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Game Development

using Git with Unity

I've looked around to see if there was a decent gitignore file for building Unity games. currently my repository is HUGE and filled with cache temp files and well I don't like it. Does anyone have a decent gitignore file in the makes?

1 Answer

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi John,

You really shouldn't use Git with an entire Unity project. There's too many large binary files for it to be effective. Typically, I turn my scripts folder into a Git repo, and then I keep my entire Unity project inside my Dropbox folder.

I just replied to a similar thread. There's a longer explanation here: https://teamtreehouse.com/community/source-control-for-unity

Thanks Nick, I am only using git so that I can do a little of this at work on lunch and then pick up at home. So I'll do as you suggested and repo the scripts folder. Thanks.