Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Git repository: not capturing all scene info?

Discussion in 'Formats & External Tools' started by sarachan, Oct 8, 2016.

  1. sarachan

    sarachan

    Joined:
    Jul 21, 2013
    Posts:
    43
    I am trying to use a BitBucket / git repository to enable working on my Unity project on two different computers: one more portable, one more powerful. Ideally, I would like to be able to switch between these computers by synching with the central git repository.

    I have it mostly working, except that details of the scene do not seem to make the round trip from one computer to the other. Some objects in the hierarchy may be missing components, for example. Also, the viewpoint location of the scene is not transferred through git. (This is not a big deal, except that it indicates that not all the scene information is being captured.)

    Which Unity files contain the details of the scene itself? Any ideas why this configuration would not be fully working?

    Thanks!
     
  2. elmax

    elmax

    Joined:
    Oct 6, 2013
    Posts:
    19
    What does your gitignore look like? AFAIK it's the only thing that might cause this.
    We keep our projects on git for a long time now - with none of those issues - even on mixed mac / pc teams.

    ours typically look like this for a start:

    Code (JavaScript):
    1. Temp/
    2. Library/
    3. build/
    4. *.suo