Skip to content

Latest commit

 

History

History
79 lines (54 loc) · 2.85 KB

readme.md

File metadata and controls

79 lines (54 loc) · 2.85 KB

Unity Quickstart (with GIT/LFS)

Add to existing GIT (non-lfs) project

Add to existing non-git project

curl -O https://raw.githubusercontent.com/rboonzaijer/unity-quickstart/main/all-unity-root-files/.gitattributes
curl -O https://raw.githubusercontent.com/rboonzaijer/unity-quickstart/main/all-unity-root-files/.gitconfig
curl -O https://raw.githubusercontent.com/rboonzaijer/unity-quickstart/main/all-unity-root-files/.gitconfig---2021.3.13f1
curl -O https://raw.githubusercontent.com/rboonzaijer/unity-quickstart/main/all-unity-root-files/.gitconfig-update-version.bat
curl -O https://raw.githubusercontent.com/rboonzaijer/unity-quickstart/main/all-unity-root-files/.gitignore
curl -O https://raw.githubusercontent.com/rboonzaijer/unity-quickstart/main/all-unity-root-files/git-lfs-logo.png
curl -O https://raw.githubusercontent.com/rboonzaijer/unity-quickstart/main/all-unity-root-files/readme.md
  • Doubleclick on '.gitconfig-update-version.bat' to automatically read + update the version in .gitconfig
git init
git lfs install
git add .
git commit -m "initial"
git remote add origin ssh://git@{host}:{port}/{new-repo}.git
git push -u origin main

HOWTO use existing Unity project (with GIT/LFS)

  • git clone {repository-url}

    ( lfs will already be enabled if it's enabled in the repository )

Setup client

(optional) Setup private Gitlab server

https://github.com/rboonzaijer/gitlab-docker

Project setup

  • Unity Hub > New project > {type=3D, Project Name="My New Project", Location=C:\git} > Create project

  • Edit > Project Settings:

    • [Category: Editor] Asset Serialization / Mode: “Force Text”
    • [Category: Version Control ] Mode: “Visible Meta Files”
  • File > Save Project

Git setup

More info