Version control commands for the Unity CLI
Manage version control for Unity projects with Git, Git providers, and Unity Version Control (UVCS), including commands for asset integrity checks, scene and prefab merges, resolving conflicts, and change analysis.
Read time 2 minutesLast updated 2 days ago
Use the commands to manage version control for Unity projects from the Unity CLI. Check repository health, track changes, compare scenes and prefabs, resolve merge conflicts, and analyze how changes affect assets, assemblies, and tests. The commands work with Unity Version Control (UVCS) and Git repositories, including GitHub, GitLab, and self-hosted Git with Git LFS. These commands are separate from Unity Collaboration.
unity vcsCommand | Description |
|---|---|
| Sets up a project from no version control to its first commit on a remote. Asks only what it can't detect, and prints the equivalent flag command. |
| Shows changes grouped by their meaning to Unity, including |
| Pulls safely: refuse while an Editor holds the project, fetch commits and LFS objects, then report the reimport. |
| Switches branches safely and report the impact before you switch. |
| Checks the repository settings, ignore rules, and LFS configuration a Unity project needs. |
| Configures Unity scene and prefab merging (UnityYAMLMerge) for the repository. |
| Lists unresolved merge conflicts, classified by whether they can merge automatically. |
| Explains in plain language what each side of a conflict changed. |
| Resolves a conflicted Unity asset using the Editor's own merge tool. |
| Compares a scene or prefab by GameObject and component name rather than by |
| Shows who last changed each GameObject and component in a scene or prefab. |
| Summarizes branch changes so you can paste them into a pull request. |
| Reports which assets, assemblies, and tests a change affects. Reports a lower bound when applicable. |
| Installs or removes Git hooks that run Unity integrity checks on your commits. |
| Reports which Git providers this machine can reach, as whom, and what each host allows. |
| Git-only verbs, including |
| Unity Version Control reads, including |