View file history
View file history in the Unity Cloud Dashboard
You can view file history in the DevOps section of the Unity Cloud Dashboard:
- Select Repositories and open the repository that you want.
- In the file explorer tab, select the context menu.
- Select History.
View file diffs
You can also compare changes on a branch or changeset:
- Select either the Branches or Changesets tab.
- Select the context menu for the branch or changeset.
- Select Compare.
- Select the destination branch or changeset from the dropdown menu and select Confirm.
View file history in the GUI
You can view file histories in the Unity DevOps Version Control desktop application:
- In the Workspace Explorer window, right-click the file you want to view.
- Select History.
View diffs for pending changes
The Pending Changes tab shows the changes that you have made in your workspace. To view the changes for a file before checkin, select the file. The window displays the diff. To go from one change to another, use the scroll arrows.
Diff a changeset
You can also view the diff for a specific changeset in the Branch explorer tab. To view the diff, right-click the changeset and select one of the following options:
- Diff with previous
- Diff with another changeset
View file history in the CLI
View logs
To show changes made on a specific changeset or range of changesets, you can use the cm log
command. In the example below, the file FileSystem.cs
has been both changed and moved:
>cm log cs:575
Changeset number: 575
Branch: /main/fix-1342
Owner: pablo
Date: 7/18/2015 19:41:29
Comment:
Changes:
C code\lib\FileSystem.cs
M code\lib\FileSystem.cs
View diffs
The cm diff
command can only show changes for a specific changeset:
>cm diff cs:575
C "code\lib\FileSystem.cs"
M "code\FileSystem-renamed.cs" "code\lib\FileSystem.cs"