Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Using Github

Discussion in 'Project Tiny' started by valourus123, Jan 16, 2019.

  1. valourus123

    valourus123

    Joined:
    Nov 12, 2018
    Posts:
    12
    Hello fellow developers,

    I wanted to make a game with friend and use git as our version control system. We are getting a ton of changes from unity auto generated file. I couldn't find a .gitignore specificity for unity tiny. I tried to just ignore all meta files but my friend got alot of errors saying unity couldn't generate meta file.

    Does anyone know how to use git in untiy tiny?
     
  2. ER_Dolleman

    ER_Dolleman

    Joined:
    Dec 10, 2018
    Posts:
    19
    I believe you should always submit the meta files since they contain important data about the files.

    This is what my ignore file looks like:
    Code (JavaScript):
    1. .DS_Store
    2.  
    3. Library/
    4. Temp/
    5. obj/
    6.  
    7. .idea/
    8. .vs/
    9. .vscode/
    10.  
    11. Tiny/
    12. TinyCache/
    13. TinyCache.meta
    14. TinyExport/
    15.  
    16. *.csproj
    17. *.opensdf
    18. *.sdf
    19. *.sln
    20. *.user
    21. *.log
    22. tsconfig.json
     
    CG_tajanssen likes this.
  3. Nkon

    Nkon

    Unity Technologies

    Joined:
    Jun 12, 2017
    Posts:
    65
    Hi there,

    There's also an alternate way to set this up. Basically, what we have usually done with our test projects is to create a repository from a subfolder of Assets. This way you should be able to do without the .gitignore file, as very few unnecessary files are stored in the project folder.

    For example, suppose you start a new Tiny project and name it TestProject. It is saved to a new folder under Assets. You can then make a repo out of Assets/TestProject and things should work quite well.

    Cheers!
     
    ER_Dolleman likes this.
  4. valourus123

    valourus123

    Joined:
    Nov 12, 2018
    Posts:
    12
    Thanks for the gitignore. In the meantime I wrote this one:

    *.ts.meta
    Logs
    Temp
    Library
    .vscode
    TinyExport
    Tiny
    tsconfig.json


    this is also a good option, Ill look into it!
     
  5. abeisgreat

    abeisgreat

    Joined:
    Nov 21, 2016
    Posts:
    45
    You should also checkout the GitHub Unity extension which includes a gitignore and works nicely with time.
     
    valourus123 likes this.