# Viewing the Commit History

> View commit history for a project, file, or folder in Studio using the Show History option in the Project panel.

To view the commit history for a project or for a specific file or folder in a project, right-click the project node, a file, or folder in the **Project** panel, and then select **Show History**.

This opens the **History** window which displays a list of existing revisions for the selected file, folder, or project. For each commit, the commit hash, message, author, and date are displayed in a table on the upper part of the window. You can view more information about a selected commit in the **Details** and **Changes** tabs on the lower part of the window.

![History window for the project folder listing two commits with their revision, message, author, and date, and the details of the selected commit](https://dev-assets.cms.uipath.com/assets/images/studio/viewing-the-commit-history-history-eecaf844.webp)

## Comparing Two Versions of a File

To compare two versions of the same file:

* If you opened the history for a file, right-click a commit in the History window, and then select **Compare with Previous**, **Compare with Local**, or **Compare with Latest**.
* If you opened the history for a folder or project, select a commit in the History window, and then, in the Changes tab, double-click a file to compare it with its previous version.

## Creating a Branch from a Previous Commit

To create a branch from a specific commit:

1. Open the context menu for a commit in the History window, and then select **Create branch**.
2. In the **Create branch** window:
   * Enter a name for the new branch.
   * To also check out the new branch, make sure the **Checkout after create** option is selected.
3. Select **OK**.

### Result

The new branch is created from the selected commit. If **Checkout after create** was selected, Studio switches to the new branch.
