Set up a workspace
To work in Unity Version Control (UVCS), you need a repository. Inside your repository, you can create a workspace, which is a local copy of a project.
Note: Since a workspace is a local copy, you need to set up your workspace through the desktop application or the command line.
Create a workspace in the GUI
You can create a workspace when you create a repository, or you can create a workspace for an existing repository.
- Select the repository dropdown menu.
- Select Open or create other workspace.
- Select Create a new workspace.
- Configure the workspace.
- Select a repository.
- Name the workspace.
- Select a location for the files.
- Select Create.
Create a workspace in the CLI
To create a new workspace, use the
cm workspace create
command:>cm workspace create quakewk quake_path --repository=quake@localhost:6060 Workspace quakewk has been correctly created
Go to your newly created directory:
>cd quake_path >cm status /main@quake@localhost:6060 (cs:0 - head)
By default, the workspace uses the
main
branch.To check the latest changeset on the branch, run
cm status --head
:>cm status --head cs:573@quake@localhost:6060
Run
update
to update to the latest changeset:cm update
The command provides information about the copied files until you’re up to date with the latest changeset.