PyCharm Edu 4.0 Help

Checking out (Switching Between) Branches

On this page:

Checking out an existing branch

  1. Select a branch in the pop-up list that shows all available local and remote branches, and choose Checkout from the submenu.
    git branch checkout

    What happens next depends on whether there are conflicts:

    • If your working tree is clean and your local changes do not conflict with the specified branch, this branch will be checked out (a notification will popup in the bottom-left corner of the PyCharm Edu window).
    • If you ware working with a dirty tree, and your local changes will be overwritten by checkout, PyCharm Edu shows the files that prevent you from checking out the selected branch, and suggests to choose between the force checkout and smart checkout.
      git smart checkout

      If you select force checkout, your local changes will be overwritten (equivalent to the git checkout -f command).

Checking which branch is currently checked out

If you want to check which branch is you are currently working in, do one of the following:

Last modified: 15 December 2017