Installing Git
中文 | English
Run this command at the repository root to replay the examples through the local Unity MCP.
python Docs/Manual/manual/tools/tutorials.py run install-git
Click to expand MCP actionsClick to collapse MCP actions
Prepare the teaching sample. The recipe provides ${variables}.
{
"variables": {},
"calls": [
{
"tool": "invoke",
"arguments": {
"path": "static:System.Environment/GetEnvironmentVariable",
"args": [
"ProgramFiles"
]
},
"expect": {
"regex": "\\(String\\) [A-Z]:\\\\"
},
"capture": {
"programFiles": {
"regex": "\\(String\\) ([^\\r\\n]+)"
}
}
}
]
}
Install Git and Git LFS on Windows if you plan to clone the public Mod SDK from GitHub. The GitHub release ZIP is ready for project setup after extraction.
Steps
Download the installer for your Windows architecture from Git for Windows.
Run the installer, then open a new terminal.
Run the command below. A version number confirms that the terminal can find Git.
git --version
Click to expand MCP actionsClick to collapse MCP actions
[
{
"tool": "invoke",
"arguments": {
"path": "static:System.IO.File/Exists",
"args": [
"${programFiles}\\Git\\cmd\\git.exe"
]
},
"expect": {
"contains": "(Boolean) True"
}
},
{
"tool": "inspect",
"arguments": {
"path": "static:System.Diagnostics.FileVersionInfo/GetVersionInfo(${programFiles}\\Git\\cmd\\git.exe)/ProductVersion"
},
"expect": {
"regex": "\\(String\\) \\d+\\.\\d+"
}
},
{
"tool": "invoke",
"arguments": {
"path": "static:System.IO.File/Exists",
"args": [
"${programFiles}\\Git\\cmd\\git-lfs.exe"
]
},
"expect": {
"contains": "(Boolean) True"
}
}
]
If you clone the SDK with Git
Open a new terminal, check that Git LFS is available, and enable it for your account.
git lfs version
git lfs install
Follow the download and clone guide to get the SDK. Fetch the large files from the repository root before opening UnityProject in Unity Hub.
git lfs pull
MCP checks the executables at the default installation location. Downloading, installing and cloning are manual steps.