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
-
git clone {repository-url}
( lfs will already be enabled if it's enabled in the repository )
- Install git: https://git-scm.com
- Install git-lfs: https://git-lfs.github.com
- Setup SSH keys: https://docs.gitlab.com/ee/user/ssh.html#generate-an-ssh-key-pair
https://github.com/rboonzaijer/gitlab-docker
-
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
-
Copy all files from the directory
all-unity-root-files
to the root of the project (+ optionally the https://github.com/rboonzaijer/unity-quickstart/raw/main/git-lfs-logo.png to directly test if it works)(TIP: Download this repo as zip: https://github.com/rboonzaijer/unity-quickstart/archive/refs/heads/master.zip)
-
Run (doubleclick): .gitconfig-update-version.bat (Every time you update your Unity version) The version will be updated in these files:
.gitconfig
&.gitconfig---2021.3.13f1
-
cd "git\My New Project"
-
git init
-
git lfs install
-
git add .
-
git commit -m "initial"
-
Create new empty project in Gitlab (or other git place...)
-
git remote add origin {repository-url}
-
git push -u origin main