IntelliJ IDEA 13.1 Web Help

VCS | Git | Push


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:

In this section:

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 refresh.png.

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
icon_showDiff.png Show Diff
Ctrl+DCtrl+DCtrl+DCtrl+DCtrl+DCtrl+DCtrl+DCtrl+DCtrl+DCommand DCommand DCommand 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.
vcsToolbarGroupByDirIcon Group by Directory
Ctrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCommand PCommand PCommand P
Use this toggle button to switch between the flat view and the directory tree view.
expandAll.png Expand All
Ctrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCommand NumPad or Command EqualsCommand NumPad or Command EqualsCommand NumPad or Command Equals
Click this button to have all the nodes in the directory tree unfolded.

Note

The button is not available in the flat view.

collapseAll.png Collapse All
Ctrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad -Ctrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCommand NumPad - or Command MinusCommand NumPad - or Command MinusCommand NumPad - or Command Minus
Click this button to have all the nodes in the directory tree folded.

Note

The button is not available in the flat view.

svnSelectAll.png Select All
Ctrl+ACtrl+ACtrl+ACtrl+ACtrl+X, HCtrl+ACtrl+ACtrl+ACtrl+ACommand ACommand ACommand 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
  • Clear this check box to have the changes from the current branch uploaded to its tracked branch.
  • Select this check box to have the changes from the current branch uploaded to another remote branch. Choose the target branch from the drop-down list.
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).
refresh.png (Ctrl+F5Ctrl+F5Ctrl+5Ctrl+F5Ctrl+F5Ctrl+F5Ctrl+Alt+RCtrl+F5Ctrl+F5Command RControl F5Command R)
Refresh commit list
Click this button to get the list of commits in the current branch up-to-date.

See Also

Procedures:

Web Resources: