Checking out (Switching Between) Branches
On this page:
Checking out an existing branch
- Select a branch in the pop-up list that shows all available local and remote branches, and choose Checkout from the submenu.
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
If you select
force checkout, your local changes will be overwritten (equivalent to the
git checkout -fcommand).
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:
- Look at the widget in the Status bar: