Compare file and folder versions
GoLand allows you to examine the differences between two revisions of a file/folder or between their current local copy and the repository version. The differences are displayed in the Differences viewer. For details on how to filter, navigate and apply changes in the Differences Viewer, see Compare files, folders, and text sources.
Open the Commit tool window Alt00.
Locate the required file in a changelist and do one of the following:
Select the file and click on the toolbar or press Ctrl0D
Double-click the file
The diff view opens where changes to the file are highlighted.
The right pane contains the modified version of the file. You can edit it in the diff view.
The left pane contains the initial version of the file. It is read-only. You can click (Revert) to undo a change.
Select a file or a folder in the Project tool window, and choose <your_VCS> | Compare With from the context menu.
Choose a revision you want to compare the current file or folder version with from the dialog that opens.
Select a file or a folder in the Project tool window, and choose <your_VCS> | Compare With Branch from the context menu.
Choose the branch you want to compare the current file or folder version with from the dialog that opens.