Using Git to version the Unity3d project

Source: Internet
Author: User
Tags git workflow using git sourcetree

Http://stackoverflow.com/questions/18225126/how-to-use-git-for-unity-source-control

The following is a excerpt from my personal blog.

Using Git with 3D games

Update Oct: GitHub has since released a plugin for git called git LFS that directly deals with the below problem. You can now easily and efficiently version large binary files!

Git can work fine with 3D games out of the box. However the main caveat here's the versioning large (>5 MB) media files can be a problem over the long term as your C Ommit history bloats. We have solved this potential issue in our projects by only versioning the binary asset when it is considered final. Our 3D artists with Dropbox to work on WIP assets, both for the reason above and because it ' smuch faster and Simpl ER (not many artists would actively want to use git!).

Git Workflow

Your Git Workflow is very much something are need to decide for yourself given Your own experiences as a team and how are you Work together. however. I would strongly recommend the appropriately namedGit Flow methodology as described by the original author here.

I won ' t go into too much depth "here" the methodology works as the author describes it perfectly and in quite few wor DS too so it's easy to get through. I have been using with my team for awhile now, and it's the best workflow we've tried so far.

Git GUI Client Application

This was really a personal preference here as there be quite a few options in terms of the Git GUI or whether to use a GUI at All. But I would like to suggest the free Sourcetree application as it plugs in perfectly with the Git Flow extension. Read the Sourcetree tutorial here on implementing the Git Flow methodology in their application.

Unity3d Ignore Folders
# =============== ## Unity generated ## =============== #Temp/Library/# ===================================== ## Visual Studio / MonoDevelop generated ## ===================================== #ExportedObj/obj/*.svd*.userprefs/*.csproj*.pidb*.suo/*.sln*.user*.unityproj*.booproj# ============ ## OS generated ## ============ #.DS_Store.DS_Store?._*.Spotlight-V100.Trashesehthumbs.dbThumbs.db
Unity3d Settings

For versions of Unity 3D v4.3 and up:

    1. (Skip This step with v4.5 and up) Enable External option in Unity → Preferences → Packages → Repository .
    2. Switch to Visible Meta Files in Edit → Project Settings → Editor → Version Control Mode .
    3. Switch to Force Text in Edit → Project Settings → Editor → Asset Serialization Mode .
    4. Save the scene and project from File menu.

Using Git to version the Unity3d project

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.