Branch Commits
This area shows a list of commits in the current branch.
- To view the details of a commit, select it in the list. The changes included in the selected commit are shown in the Commit Changes area.
-
To get the list of commits in the current branch up-to-date, click the Refresh button
.
Commit Details
This area shows the changes included in the selected commit. Use the controls in this area to browse through the changes included in the selected commit and appoint the changes for push by selecting the relevant files.
| Item | Tooltip and shortcut | Description |
|---|---|---|
|
|
Show Diff Ctrl+DCtrl+D | Click this button to open the Differences Viewer that shows the differences between the committed version of the selected file and its previous version thus pointing at the committed changes. |
|
|
Group by Directory Ctrl+PCommand P | Use this toggle button to switch between the flat view and the directory tree view. |
|
Expand All Ctrl+Add; Ctrl+EqualsCtrl+Add; Ctrl+Equals |
Click this button to have all the nodes in the directory tree unfolded.
Note The button is not available in the flat view. |
|
Collapse All Ctrl+Subtract; Ctrl+MinusCtrl+Subtract; Ctrl+Minus |
Click this button to have all the nodes in the directory tree folded.
Note The button is not available in the flat view. |
|
Select All Ctrl+ACtrl+A | Click this button to select all the files in the list or directory tree and thus appoint the corresponding changes for push. |
Target Remote Branch
In this area, specify the branch to upload the changes from the current branch to.
| Item | Description |
|---|---|
| Push current branch to alternative branch |
|
| Target Branch |
From this drop-down list, choose the target branch to upload the current branch to.
Note If your project uses several Git repositories, the list shows only the branches that are common for all repositories. For example, if your project uses repo_one and repo_two, where repo_one has two branches origin and github while repo_two has only origin, then only origin will be available from the drop-down list, so there is no way to push to github from IntelliJ IDEA. |
| New Branch | In this text box, type the name of a new remote branch to be created, if the target branch is not yet present in the remote repository. This situation is quite common, for example, when you are publishing your project IntelliJ IDEA will automatically set up tracking (git push -u origin newbranch). |
(Ctrl+F5Control F5)Refresh commit list | Click this button to get the list of commits in the current branch up-to-date. |

or to any other remote branch.