Unity och git

En gÄng:

  • Ha Visual Studio Code installerat.

  • LĂ€gg in tillĂ€gget gitignore till Visual Studio.

En gÄng per projekt:

  • GĂ„ till projektet i Visual Studio Code, öppna kommando-palletten (F1 eller Fn+F1) och sök "add gitignore". VĂ€lj "Unity".

  • GĂ„ till Source Control och vĂ€l Initialize Repository.

  • Publicera projektet pĂ„ Github.

En gÄng per arbetstillfÀlle:

  • GĂ„ till projektet i Visual Studio Code.

  • GĂ„ till Source Control.

  • Skriv nĂ„got i rutan för Message.

  • Trryck pĂ„ plusset till höger om "Changes" för att lĂ€gga till alla nya Ă€ndringar till din commit.

  • Tryck pĂ„ Commit, och sedan Sync.

För projekt med stora filer (>100mb)

  • GĂ„ till projektet i Visual Studio Code.

  • GĂ„ till terminalen

  • Skriv in kommandot git lfs install för att aktivera Git LFS (Large File System)

  • Skriv dĂ€refter in git lfs track '*.fbx' för att göra sĂ„ att LFS sköter alla FBX-filer. Gör motsvarande för andra stora filtyper.

Last updated