# Log tab

> **TL;DR**
> View | Tool Windows | <specific_VCS>
>
>
>
> `Alt+9` (Windows), `⌘ 9` (macOS), `⌘ 9` (IntelliJ IDEA Classic (macOS)), `⌘ 9` (macOS System Shortcuts), `Alt+9` (XWin), `Alt+9` (GNOME), `Alt+9` (KDE), `Alt+9` (Emacs), `Alt+9` (Sublime Text), `⌘ 9` (Sublime Text (macOS)), `Alt+9` (NetBeans), `Alt+9` (Visual Studio), `⌘ 9` (Visual Studio (macOS)), `Alt+9` (Eclipse), `⌘ 9` (Eclipse (macOS))

This tab shows all local and remote branches as well as all changes committed to all branches or to a [specific](#filterByBranch) branch or repository.

> **Tip:**
> To assign a custom shortcut, go to Settings | Keymap | Version Control Systems and search for the Show VCS Log action.

The tab contains the following panes:

![Git log tab](https://resources.jetbrains.com.cn/help/img/idea/2026.2/Git_log_tab_legend.png)

1.  The [Branches](#BranchesPane) pane is located on the left and shows all local and remote branches. From this pane, you can switch between branches, create new branches and delete the ones you don't need anymore, filter the log by branch, and more.

2.  The [Commits](#CommitsPane) pane is located in the central part of the tool window and shows the commits to all or to the [selected](#filterByBranch) branches.

3.  The [Changed Files](#changedFiles) pane is located on the right of the tool window and shows the list of files that were modified within the selected commit.

4.  The [Commit Details](#commitDetails) pane is located on the right under the [Changed Files](#changedFiles) pane and shows the details of the selected commit.

## Branches Pane

The Branches pane lists all local and remote branches, and lets you perform all branch operations.

### Branches pane toolbar

|  Icon  |  Action  |  Description  |
| --- | --- | --- |
|  ![the Left arrow icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.chevronLeft.svg)  |  Hide Git Branches  |  Hide the Branches pane.  |
|  ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.add.svg)  |  New Branch  |  [Create a new branch based on the selected branch](manage-branches.html#create-branch-from-selected).  |
|  ![the Update Selected button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.vcs.update.svg)  |  Update Selected  |  [Fetch](sync-with-a-remote-repository.html#fetch) changes from the selected branch.  |
|  ![the Delete button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.delete.svg)  |  Delete Branch  |  [Delete](manage-branches.html#delete-branch) the selected branch.  |
|  ![the Show diff icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.vcs.diff.svg)  |  Compare with Current  |  [Compare](manage-branches.html#compare_branches) the selected branch with the branch that is currently checked out.  |
|  ![the Search icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.search.svg)  |  Show My Branches  |  Filter the list to only display branches created by you.  |
|  ![the Fetch button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.vcs.fetch.svg)  |  Fetch All Remotes  |  [Fetch](sync-with-a-remote-repository.html#fetch) changes from all remote branches.  |
|  ![the Star icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.nodes.star.svg)  |  Mark/Unmark as Favorite  |  Mark the selected branch as a favorite one. Favorite branches are displayed on top of the list.   |
|  ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.general.locate.svg)  |  Navigate Log to Selected Branch Head  |  Jump back to the `HEAD` of the selected branch.  |
|  ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.settings.svg)  |  Branches Pane Settings  |     Select what action to perform on a single click:        * Update Branch Filter: automatically update the commits' list to show only the history of the selected branch.    * Navigate Log to Branch Head: jump back to the `HEAD` of the selected branch.      Group By Directory: group the branches by directory.       Show Tags: display tags as a separate node in the list of branches.     |
|  ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.expandAll.svg) ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.collapseAll.svg)  |  Expand All / Collapse All  |  Expand/collapse the list  |

### Branches pane context menu

|  Item  |  Description  |
| --- | --- |
|  Checkout  |  [Checkout](manage-branches.html#switch-branches) the selected branch.  |
|  New Branch From <selected_branch>  |  [Create a new branch                         based on the selected branch](manage-branches.html#create-branch-from-selected).  |
|  Checkout and Rebase onto <current_branch>  |  [Rebase](apply-changes-from-one-branch-to-another.html#rebase-branch) the selected branch on top of the currently checked-out branch.  |
|  Compare with <current_branch>  |  [Compare](manage-branches.html#compare_branches) the selected branch with the branch that is currently checked out.  |
|  Show Diff with Working Tree  |  [Compare](manage-branches.html#compare_branch_with_working_tree) the selected branch with the local state of the branch that is currently checked out.  |
|  Rebase <current_branch> onto <selected_branch>  |  [Rebase](apply-changes-from-one-branch-to-another.html#rebase-branch) the currently checked-out branch on top of the selected one. This is equivalent to running `git rebase` with the selected branch name.  |
|  Merge <selected_branch> into <current_branch>  |  [Merge](apply-changes-from-one-branch-to-another.html#merge) the selected branch into the currently checked-out branch. This is equivalent to running `git merge` with the selected branch name.  |
|  New Worktree from <selected_branch>  |  Create [a Git worktree](use-git-worktrees.html) from the selected branch.  |
|  Pull into <current_branch> Using Rebase  |  Fetch changes from the selected branch and [rebase](apply-changes-from-one-branch-to-another.html#rebase_branch_on_top_of_another_branch) the current branch on top of these changes.  |
|  Pull into <current_branch> Using Merge  |  Fetch changes from the selected branch and [merge](apply-changes-from-one-branch-to-another.html#merge) them into the current branch.  |
|  Update  |  [Pull](sync-with-a-remote-repository.html#pull) changes from the selected branch.    You can select multiple branches to update them in a batch.     |
|  Push  |  [Push](commit-and-push-changes.html#push) outgoing commits to the selected branch.  |
|  Rename  |  Rename the selected branch.  |
|  Delete  |  [Delete](manage-branches.html#delete-branch) the selected branch.    You can select multiple branches to delete them in a batch.     |

## Commits Pane

This area shows a list of all commits made to the selected branch, or to all branches. For each commit, the list shows the commit message, the author, and the commit timestamp. The latest commit in each branch is supplied with a label with the name of the branch in which it was performed.

![commit labels](https://resources.jetbrains.com.cn/help/img/idea/2026.2/commit_labels.png)

* yellow: marks the current branch head

* green: marks local branches

* violet: marks remote branches

Commits to the current branch are displayed against the light blue background, while commits to all other branches are shown against the white background.

Commits made by you are marked with bold.

The asterisk next to a commit marks commits where the author and the user who committed the changes are different.

Clicking an arrow takes you to the next commit in a long branch:

![jump to next commit](https://resources.jetbrains.com.cn/help/img/idea/2026.2/jumpToNextCommit.png)

You can also press the `Left` (Windows), `←` (macOS), `←` (IntelliJ IDEA Classic (macOS)), `←` (macOS System Shortcuts), `Left` (XWin), `Left` (GNOME), `Left` (KDE), `Left` (Emacs), `Left` (Sublime Text), `←` (Sublime Text (macOS)), `Left` (NetBeans), `Left` (Visual Studio), `←` (Visual Studio (macOS)), `Left` (Eclipse), `←` (Eclipse (macOS)) and `Right` (Windows), `→` (macOS), `→` (IntelliJ IDEA Classic (macOS)), `→` (macOS System Shortcuts), `Right` (XWin), `Right` (GNOME), `Right` (KDE), `Right` (Emacs), `Right` (Sublime Text), `→` (Sublime Text (macOS)), `Right` (NetBeans), `Right` (Visual Studio), `→` (Visual Studio (macOS)), `Right` (Eclipse), `→` (Eclipse (macOS)) keys to jump to the parent/child commit. This is especially useful if you have commits to different repositories and multiple branches all mixed in the  Log tab of the   Version Control tool window  `Alt+9` (Windows), `⌘ 9` (macOS), `⌘ 9` (IntelliJ IDEA Classic (macOS)), `⌘ 9` (macOS System Shortcuts), `Alt+9` (XWin), `Alt+9` (GNOME), `Alt+9` (KDE), `Alt+9` (Emacs), `Alt+9` (Sublime Text), `⌘ 9` (Sublime Text (macOS)), `Alt+9` (NetBeans), `Alt+9` (Visual Studio), `⌘ 9` (Visual Studio (macOS)), `Alt+9` (Eclipse), `⌘ 9` (Eclipse (macOS))  .

In multi-repository projects, the colored stripe on the left indicates which root the selected commit belongs to (each root is marked with its own color). Hover over the colored stripe to invoke a tip that shows the root path.

![root path](https://resources.jetbrains.com.cn/help/img/idea/2026.2/log_root_path.png)

You can also enable the [Show Root Names](#rootNames) option if you want to expand the Roots column with full root names.

Committed changelists often correspond to issues in tracking systems. You can jump to such issues in a browser right from the Commits pane. This functionality is available if:

* The [pattern](handling-issues.html#issueNavigationPattern) of the bug tracking system is specified in the [Issue Navigation](handling-issues.html) Settings Preferences dialog.

* The corresponding issue number is mentioned in the commit message.

After issue navigation has been configured, issue numbers in commit messages are rendered as links. Clicking such link brings you to the corresponding page of your issue tracker.

### Commits pane toolbar

| Item | Tooltip and Shortcut | Description |
| --- | --- | --- |
| Search field | N/A |    Use this field to search through the list of commits. You can enter full commit names or messages, or their fragments, revision numbers, or regular expressions. To finalize the search, press `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (NetBeans), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (Eclipse), `⏎` (Eclipse (macOS)) or move the focus away from the search field.      > **Tip:** > You can quickly switch the focus to the search field by pressing `Ctrl+L` (Windows), `⌘ L` (macOS), `⌘ L` (IntelliJ IDEA Classic (macOS)), `⌘ L` (macOS System Shortcuts), `Ctrl+L` (XWin), `Ctrl+L` (GNOME), `Ctrl+L` (KDE), `Ctrl+L` (Emacs), `Ctrl+L` (Sublime Text), `⌘ L` (Sublime Text (macOS)), `Ctrl+L` (NetBeans), `Ctrl+L` (Visual Studio), `⌘ L` (Visual Studio (macOS)), `Ctrl+L` (Eclipse), `⌘ L` (Eclipse (macOS)).      Click ![Find](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.toolwindow.find.svg) to display the previous search patterns.       Click ![the Clear icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.closeSmall.svg) to clear the search.     |
|  `.* / Cc`  | Regex / Match Case |    Click to select from the following text filter settings:        * Regex: anything you type in the search field is treated as a [regular expression](regular-expressions.html), for example, `#\d+`.    * Match Case: only entries with the matching case count.    |
| Branch | N/A | Filter commits by branch or [favorite branches](manage-branches.html#favorite_branches). If you want to see commits from all local and remote branches, select All.  |
| User | N/A | Filter commits by author. To view all commits by a specific author, click Select and start typing the author's name. To view commits by all users, select All. |
| Date | N/A | Filter commits by a time-frame or a specific date. To view commits made on a specific date, click Select and specify the date. To view commits made on all dates, select All. |
| Paths | N/A | Filter commits by the folder (for projects that have one root), or by the root and folder (for multi-rooted projects). To view commits to a specific folder, click Select Folders and specify the folder name. For multi-repository projects, you can also select the checkbox next to one or several roots in the Roots section. |
|  ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/intellij.platform.vcs.log.impl.icons.new.intelliSort.svg)  |  Graph Options  |     Customize the way the commits' graph looks:        * By default, the commits are sorted By commit date. You can also sort them Topologically to get a more convenient way to view merges by displaying incoming commits first, directly below the merge commit.    * Simplify the graph by selecting Show First Parent to only show the first parent or No Merges to filter out merge commits for a cleaner view of individual changes.    * Collapse Linear Branches: enable this option to collapse all branches on the graph so that a dotted line is shown instead of successive commits. It is also possible to collapse an individual expanded branch by clicking it. Expand Linear Branches: enable this option to expand all collapsed branches to show successive commits on the graph. It is also possible to expand an individual collapsed branch by clicking it.    |
|  ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.progress.resume.svg)  |  Enable Git Log Indexing  |     When enabled, this option improves working with the history of changes across IntelliJ IDEA:        * Fast log filtering and computing precise history.    * Branch filter in file history for revision.    * Searching across history in [Search Everywhere](searching-everywhere.html) .    |
| ![the Refresh button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.general.refresh.svg)  |    Refresh      `Ctrl+F5` (Windows), `⌘ R` (macOS), `⌃ F5` (IntelliJ IDEA Classic (macOS)), `⌘ R` (macOS System Shortcuts), `Ctrl+F5` (XWin), `Ctrl+F5` (GNOME), `Ctrl+5` (KDE), `Ctrl+F5` (Emacs), `Ctrl+F5` (Sublime Text), `⌘ R` (Sublime Text (macOS)), `Ctrl+F5` (NetBeans), `Ctrl+Alt+R` (Visual Studio), `⌘ ⌥ R` (Visual Studio (macOS)), `Ctrl+F5` (Eclipse), `Ctrl+F5` (Eclipse (macOS))     | Refresh the list of commits. |
| ![the Cherry-Pick button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.vcs.cherryPick.svg)  |    Cherry-pick (Git)    |    [Apply changes from the selected commit to the current branch](apply-changes-from-one-branch-to-another.html#cherry-pick).      > **Note:** > This button is disabled if the selected commit is already contained in the current branch.    |
|  ![the Eye icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.general.show.svg)  |  Presentation Settings  |     Click to invoke the list of options that let you configure how data is presented in the  Log tab of the   Version Control tool window  `Alt+9` (Windows), `⌘ 9` (macOS), `⌘ 9` (IntelliJ IDEA Classic (macOS)), `⌘ 9` (macOS System Shortcuts), `Alt+9` (XWin), `Alt+9` (GNOME), `Alt+9` (KDE), `Alt+9` (Emacs), `Alt+9` (Sublime Text), `⌘ 9` (Sublime Text (macOS)), `Alt+9` (NetBeans), `Alt+9` (Visual Studio), `⌘ 9` (Visual Studio (macOS)), `Alt+9` (Eclipse), `⌘ 9` (Eclipse (macOS))  .       Show:        * Compact References View: if this option is enabled, branch references for a single commit are displayed in a collapsed view: ![compact references view](https://resources.jetbrains.com.cn/help/img/idea/2026.2/compactReferenceView.png) If you want to expand each branch reference on a line, deselect this option: ![expanded references view](https://resources.jetbrains.com.cn/help/img/idea/2026.2/expandedReferencesView.png)    * Tag Names: enable this option if you want tag names to be displayed in addition to the tag icon: ![tag name](https://resources.jetbrains.com.cn/help/img/idea/2026.2/showTagName.png) If this option is disabled, you can still view a tag name by hovering over the tag icon.    * Long Edges: if this option is enabled, long branches are displayed in full, even if there are no commits in them. If this option is disabled (by default), long branches are replaced with a down arrow.    * Commit Timestamp: enable this option if you want IntelliJ IDEA to show the commit timestamp in the Log view instead of the time when a change was authored.    * References on the Left: enable this option to see branch references to the left of the commit message.    * Show Root Names: enable this option if you want to expand the Roots column on the left showing full root names in a multi-repository project. ![root name](https://resources.jetbrains.com.cn/help/img/idea/2026.2/rootNames.png)    * Columns: customize columns in the log. You can choose whether you want the log to show the author, the date, the commit hash, and the GitHub commit checks performed by your CI system.      Highlight:        * My Commits: bold font    * Merge Commits: greyed out    * Current Branch: blue background    * Not Cherry-Picked Commits: greyed out (only available for Git). Non-picked commits are commits from the selected branch that have not yet been applied to the current branch.    |
| ![the Find icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.toolwindow.find.svg) |    Go to Hash/Branch/Tag      `Ctrl+F` (Windows), `⌘ F` (macOS), `⌘ F` (IntelliJ IDEA Classic (macOS)), `⌘ F` (macOS System Shortcuts), `Ctrl+F` (XWin), `Ctrl+F` (GNOME), `Ctrl+F` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+F` (Sublime Text), `⌘ F` (Sublime Text (macOS)), `Ctrl+F` (NetBeans), `Ctrl+F` (Visual Studio), `⌘ F` (Visual Studio (macOS)), `Ctrl+F` (Eclipse), `Ctrl+F` (Eclipse (macOS))     |    Click this button and specify a hash, tag or branch you want to jump to.       You can select a reference with the same name from different repositories. The name of each repository is displayed on the right along with its color indicator.     |

### Commits pane context menu

| Item | Description |
| --- | --- |
|  Copy Revision Number  |  Copy the revision number of the selected commit to the clipboard.  |
|  Create Patch  |  [Create a patch](using-patches.html) based on the selected commit.  |
|  Cherry-pick  |  [Apply                             changes from the selected commit to the current branch](apply-changes-from-one-branch-to-another.html#cherry-pick).  |
|  Checkout Revision  |  Check out the state of files recorded in the selected commit.  |
|  Show Repository at Revision  |  Open a snapshot of your project at the selected revision in the [Project](project-tool-window.html) view.  |
|  Compare with Local  |  Compare the state of the repository at the selected commit with its current state in your local working copy.  |
|  Reset Current Branch to Here  |  [Reset the current branch head to the selected commit](undo-changes.html#reset-HEAD). In the Git Reset dialog that opens, select the mode in which the working tree will be updated.  |
|  Revert Commit  |  [Roll back](undo-changes.html#revert-commit) the changes in the selected commit. A new commit will be created that reverts the changes in the selected commit.  |
|  Undo Commit  |  [Revert the changes](undo-changes.html#revert-last-commit) in the selected commit. This command is only available for the commits made by you.  |
|  Edit Commit Message  |  [Modify the message](edit-project-history.html#edit-commit-message) of the selected commit. This action is only available for commits that haven't been pushed yet.  |
|  Fixup  |  [Add staged changes to the selected commit](edit-project-history.html#amend-commit) instead of creating a separate commit. Only the commit message of the original commit will be preserved.  |
|  Squash Into  |  [Add staged changes to the selected commit](edit-project-history.html#amend-commit) instead of creating a separate commit. The messages from both commits will be preserved.  |
|  Drop Commits  |  [Discard a pushed commit](undo-changes.html#drop-git-commit) in the current branch without leaving any traces of the operation.  |
|  Squash Commits  |  [Combine selected commits](edit-project-history.html#squash-commits) for the sake of cleaner branch history.  |
|  Interactively Rebase from Here  |  [Edit the history of                             the current branch](apply-changes-from-one-branch-to-another.html#start_interactive_rebase_from_here) by performing an interactive rebase of all commits after the selected one.  |
|  Push All up to Here  |  If you have some commits you've made but not yet want to [push](commit-and-push-changes.html#push) to a remote branch, select the last commit you want to push and then Push All up to Here.  |
|  Add Commits to Remote Branch  |  Select commits and cherry-pick them to a remote branch of choice.  |
|  Rebase <current_branch> onto Selected Commit  |  [Rebase](apply-changes-from-one-branch-to-another.html#rebase-branch) the currently checked-out branch onto the selected commit.  |
|  Branch <branch_name> / Branches  |     This command appears for all branches that point to the selected commit (Branch <branch_name> if there is one branch, or Branches if there are multiple branches) and provides the same options as the ones available from the [VCS widget](manage-branches.html#invoke-branches-popup) and the [context menu of the Branches pane](#branches_pane_context_menu).       If the Control repositories synchronously option is enabled, and the selected branch exists in multiple repositories, an additional menu option named In All Repositories appears that allows you to perform the same operations in all repositories simultaneously.     |
|  New Branch  |  [Create a new branch based on the selected commit](manage-branches.html#create-branch-from-commit).  |
|  New Tag  |  [Add a new tag](use-tags-to-mark-specific-commits.html) to the selected commit.  |
|  Go to Child Commit  |  Jump to the next commit in this branch.  |
|  Go to Parent Commit  |  Jump to the previous commit in this branch.  |
|  View in browser  |  Open the page that corresponds to the selected commit in the browser.  |

## Changed files pane

This pane shows a list of files that were modified within the currently selected commit.

> **Tip:**
> If you want to see a full list of all files modified since the last update, place the caret anywhere in the list of commits and press `Ctrl+A` (Windows), `⌘ A` (macOS), `⌘ A` (IntelliJ IDEA Classic (macOS)), `⌘ A` (macOS System Shortcuts), `Ctrl+A` (XWin), `Ctrl+A` (GNOME), `Ctrl+A` (KDE), `Ctrl+X, H` (Emacs), `Ctrl+A` (Sublime Text), `⌘ A` (Sublime Text (macOS)), `Ctrl+A` (NetBeans), `Ctrl+A` (Visual Studio), `⌘ A` (Visual Studio (macOS)), `Ctrl+A` (Eclipse), `⌘ A` (Eclipse (macOS)). You can disable grouping to see a flat list: click ![Group By](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.actions.groupBy.svg) on the toolbar in the Changed Files pane.

### Changed files pane toolbar

| Item | Tooltip and Shortcut | Description |
| --- | --- | --- |
|  ![the Show diff icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.vcs.diff.svg)  |    Show Diff      `Ctrl+D` (Windows), `⌘ D` (macOS), `⌘ D` (IntelliJ IDEA Classic (macOS)), `⌘ D` (macOS System Shortcuts), `Ctrl+D` (XWin), `Ctrl+D` (GNOME), `Ctrl+D` (KDE), `Ctrl+D` (Emacs), `Ctrl+D` (Sublime Text), `⌘ D` (Sublime Text (macOS)), `Ctrl+D` (NetBeans), `Ctrl+D` (Visual Studio), `⌘ D` (Visual Studio (macOS)), `Ctrl+D` (Eclipse), `⌘ D` (Eclipse (macOS))     |  Open the [Diff Viewer for files](differences-viewer.html) where you can compare the local version of the selected file with its repository version.  |
|  ![the Revert button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.vcs.revert.svg)  |  Revert Selected Changes  |  [Roll back the changes](undo-changes.html#revert-local-changes) in the selected file.  |
|  ![the History Up to Here button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.history.svg)  |  History Up to Here  |  Open the [History tab](version-control-tool-window-history-tab.html) for the selected file that lets you explore the history of all file revisions.  |
|  ![the Eye icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.general.show.svg)  |  View Options  |     Group the modified files by directory or module.       Configure layout:        * Show Details: show the [Commit details pane](#commitDetails).    * Show Diff Preview: open the Preview Diff pane where you can explore the differences between the selected modified file and its repository version.    |
|  ![the Expand All button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.expandAll.svg) ![the Collapse All button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.collapseAll.svg)  |    Expand All/Collapse All      `Ctrl+NumPad +` (Windows), `⌘ NumPad +` (macOS), `⌘ NumPad +` (IntelliJ IDEA Classic (macOS)), `⌘ NumPad +` (macOS System Shortcuts), `Ctrl+NumPad +` (XWin), `Ctrl+NumPad +` (GNOME), `Ctrl+NumPad +` (KDE), `Ctrl+NumPad +` (Emacs), `Ctrl+NumPad +` (Sublime Text), `⌘ NumPad +` (Sublime Text (macOS)), `Ctrl+NumPad +` (NetBeans), `Ctrl+NumPad +` (Visual Studio), `⌘ NumPad +` (Visual Studio (macOS)), `Ctrl+Shift+NumPad *` (Eclipse), `⌘ ⇧ NumPad *` (Eclipse (macOS))     |  Click this button to expand/collapse all nodes.    Note that these buttons are only available only when tree-view is enabled.     |

### Context menu commands

| Item | Description |
| --- | --- |
|  Show Diff `Ctrl+D` (Windows), `⌘ D` (macOS), `⌘ D` (IntelliJ IDEA Classic (macOS)), `⌘ D` (macOS System Shortcuts), `Ctrl+D` (XWin), `Ctrl+D` (GNOME), `Ctrl+D` (KDE), `Ctrl+D` (Emacs), `Ctrl+D` (Sublime Text), `⌘ D` (Sublime Text (macOS)), `Ctrl+D` (NetBeans), `Ctrl+D` (Visual Studio), `⌘ D` (Visual Studio (macOS)), `Ctrl+D` (Eclipse), `⌘ D` (Eclipse (macOS))  |  Click to open the [Diff Viewer for files](differences-viewer.html) where you can compare the current and the previous revision of the selected file.  |
|  Show Diff in a New Window  |  Click to open the [Diff Viewer for files](differences-viewer.html) in a separate window.  |
|  Compare with Local  |  Compare the revision of the file in the selected commit with its current local version.  |
|  Compare Before with Local  |  Compare the reversion of the file before the selected commit with its current local revision.  |
|  Edit Source `F4` (Windows), `⌘ ↓` (macOS), `F4` (IntelliJ IDEA Classic (macOS)), `F4` (macOS System Shortcuts), `F4` (XWin), `F4` (GNOME), `F4` (KDE), `F4` (Emacs), `F4` (Sublime Text), `F4` (Sublime Text (macOS)), `F4` (NetBeans), `F4` (Visual Studio), `⌘ ↓` (Visual Studio (macOS)), `F12` (Eclipse), `F3` (Eclipse (macOS))  |  Open the local copy of the selected file for editing.  |
|  Open Repository Version  |  Click to open the repository version of the selected file for editing.  |
|  Revert Selected Changes  |  Click to roll back the changes in the selected file. This option is useful when you only need to revert specific files instead of [discarding an entire commit](undo-changes.html#revert-commit). Changes that revert the selected file will be placed in the active changelist.  |
|  Cherry-Pick Selected Changes  |  Click to [apply the selected changes](apply-changes-from-one-branch-to-another.html#apply-separate-changes) to the current branch.  |
|  Extract Selected Changes to Separate Commit  |  If you want to split the already committed changes into several commits, you can [extract                             the changes in selected files into a separate commit](edit-project-history.html#extract-selected-changes).  |
|  Drop Selected Changes  |  If you have committed changes in several files and now want to roll back some of these changes before pushing your commit, you can [drop only some of these changes](undo-changes.html#drop-selected-changes-from-a-commit) instead of dropping an entire commit.  |
|  Create Patch ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/patch.svg)  |  [Create a patch](using-patches.html#create-patch) from selected files.  |
|  Get from Revision ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.general.download.svg)  |  Roll back the file to the state in the selected revision.  |
|  History Up to Here  |  Open the [History tab](version-control-tool-window-history-tab.html) for the selected file that lets you explore the history of all file revisions.  |
|  Show Changes to Parents  |  Display changes to both parents for a merge commit to review merge results and [see how exactly conflicts were resolved](investigate-changes.html#review_merge_commit) during a merge.  |

## Commit Details

This area is displayed when the [Show Details](#showDetails) ![the Show Details button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.debugger.restoreLayout.svg) option is enabled.

This area shows the details on the commit selected in the commit list, such as the commit message, hash, author, the link to the author's email, date, time, GPG signature, root and branches.

If the selected commit is contained in more than six branches, only the first six are displayed, and the Show All link appears that you can click to expand a complete list of branches.

If a commit message references another commit, you can click this commit's hash to jump to it in the log.

## How it works

* [Put an existing project under Git version control](set-up-a-git-repository.html#put-existing-project-under-Git)

* [Merge, rebase, or cherry-pick to apply changes](apply-changes-from-one-branch-to-another.html)

* [Version control](version-control-integration.html)

