Skip to content

A quick starting point to store any new Unity project in GIT with LFS

Notifications You must be signed in to change notification settings

rboonzaijer/unity-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published