PyCharm Edu 3.5 Help

Git Push Dialog

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 PyCharm Edu 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.

ItemTooltip and shortcutDescription
icon_showDiff.png Show Diff
N/A
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+P
Use this toggle button to switch between the flat view and the directory tree view.
expandAll.png 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.

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

/help/img/idea/2017.1/iconSelectAll.png 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.

ItemDescription
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.

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 PyCharm Edu.

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 PyCharm Edu will automatically set up tracking (git push -u origin newbranch).
refresh.png or Ctrl+F5
Refresh commit list
Click this button to get the list of commits in the current branch up-to-date.

See Also

Last modified: 31 July 2017