Git Push Dialog
In this dialog box:
- Upload the current branch to its tracked branch or to any other remote branch.
-
Publish the current branch by pushing it to a new branch on the server. In this case, the local branch doesn't have a tracked branch yet and
IntelliJ IDEA automatically sets up tracking (
git push -u origin newbranch
).
The dialog box consists of three panes:
- The left-hand pane shows a list of commits in the current branch. In this pane, select the commit to push changes from. To get the list of commits in the current branch up-to-date, click the Refresh commit list button .
- The right-hand pane shows the changes of the selected commit.
- In the bottom pane, choose the target branch to upload the changes to.
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 N/A | Click this button to open the Differences viewer for files 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+P | Use this toggle button to switch between the flat view and the directory tree view. | |
Expand All Ctrl+NumPad Plus |
Click this button to have all the nodes in the directory tree unfolded.
The button is not available in the flat view. | |
Collapse All Ctrl+NumPad - |
Click this button to have all the nodes in the directory tree folded.
The button is not available in the flat view. | |
Select All Ctrl+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.
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 |
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+F5) Refresh commit list | Click this button to get the list of commits in the current branch up-to-date. |