File | Settings | Version Control | Git

Use this page to specify the version control settings to be applied to the directories of your project that are under Git control.

ItemDescription
Path to Git executable In this text box, specify the path to the Git executable file. Type the path manually or click the Browse button browseButton.png to open the Select Path - Git Configuration dialog box and select the location of the Git executable file in the directories tree.
TestClick this button to check whether the specified settings ensure establishing connection.
SSH executable Use this drop-down list to specify the SSH version to be used with Git. The available options are:
  • Built-in: select this option to have the implementation provided by PyCharm used.
  • Native: select this option to have the native implementation used.

    On some platforms, using the native ssh implementation may cause hang-up problems. In native case, you may need to configure a platform-specific ssh-askpass to receive prompts for passwords.

Line Separators Conversion Use this area, configure processing of line separators in source files after commit. The available options are:
  • Do not convert: select this option to leave sources as is.
  • Convert to project line separators: select this option to have line separators converted according to the project code style settings.
  • Ask before conversion: if this option is selected, the list of files to be converted is shown before conversion is applied and you are asked to choose the conversion method.
Auto-update if push of the current branch was rejected
  • Clear this check box to have PyCharm display the Push Rejected dialog box when pushing a branch to its tracked branch is rejected due to lack of synchronization between your local repository and the remote storage. The dialog box proposes to synchronize the local branch using rebase or merge.
  • Select this check box to have the current branch updated automatically if your push from the current branch to its tracked branch is rejected.
    • If you have never seen the Push Rejected dialog box before and you are enabling the check box initially, PyCharm will update the conflicting local branch silently by means of the merge operation.
    • If you have already encountered the Push Rejected dialog box and selected the Remember the update method choice... check box, PyCharm saves your last choice (rebase or merge) and will apply it to update the conflicting local branch silently.

      Accordingly, to change the "remembered" setting, clear the check box, access the Push Rejected dialog box, select the Auto-update if push ... rejected check box, whereupon invoke another update strategy.

See Also

Concepts:

Procedures:

Reference:

Web Resources: