PyCharm 2016.2 Help

Creating a New Branch

On this page:

To create a new Git branch

  1. Invoke the Branches menu as described in Accessing Git Branches Popup Menu.
  2. In the pop-up menu, choose New Branch.
  3. In the Create new branch dialog box, specify the branch name. The branch with the specified name will be checked out (corresponds to git checkout -b).

To check out a new Git branch from a local branch

  1. Invoke the Branches menu as described in Accessing Git Branches Popup Menu.
  2. Select a branch in the pop-up list that shows all available local and remote branches, and choose Checkout as new branch from the submenu.
  3. Specify the branch name in the Create new branch dialog that opens.

To check out a new local branch from a remote branch

  1. Invoke the Branches menu as described in Accessing Git Branches Popup Menu.
  2. Select a branch in the pop-up list that shows all available local and remote branches, and choose Checkout as new local branch from the submenu.
  3. Specify the name of the new branch in the Checkout new branch from <branch name> dialog that opens.

    The branch with the specified name will be checked out and put under version control.

See Also

Last modified: 23 November 2016