PyCharm 2016.3 Help

Checkout Dialog

VCS | Git | Checkout Branch


Use this dialog box to switch between existing branches and create new branches in a local repository.

ItemDescription
Git RootFrom this drop-down list, select the path to the local repository in which you want to switch between existing branches or create a new branch.
Current BranchThis read-only field shows the name of the working branch in the selected local repository.
CheckoutFrom this drop-down list, select the branch or tag to which you want to switch or which you want to copy to a new branch. To specify a particular commit, type its commit hash or use an expression, for example, of the following structure:
<branch>~<number of commits backwards between the latest commit (HEAD) and the required commit>.
Refer to the Git commit naming conventions for details.
ValidateClick this button to check that the commit specified in the Checkout field exists and view which files were affected in it.

The Validate button next to an editable field indicates that regular expressions are allowed in the field.

Include TagsSelect this check box to have tags also shown in the Checkout drop-down list.
As New BranchIn this text box, type the name of the branch to be created.

You can also type the name of an existing branch and select the Override check box.

Create Ref LogSelect this check box to have a reference log for the new branch created where all changes made to the branch references will be recorded.
Track BranchSelect this check box to track the parent of the new branch.
OverrideSelect this check box if you want to checkout a branch to an existing branch.

Use this option with care because the history of the target branch will be lost.

CheckoutClick this button to switch to the specified existing branch or to create a new branch in the local repository.

See Also

Last modified: 23 December 2016