# How to Checkout a Branch in Sourcetree

> To switch branches in Sourcetree, open your repository, locate the desired branch in the left-hand Branches panel, right-click the branch name, and select Checkout from the context menu. Confirm the branch if prompted to switch your working copy and start coding.

Canonical: https://livedemo.ai/tutorials/how-to-checkout-a-branch-in-sourcetree/
Apps: Sourcetree
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a32bcab56e05a00fd66cb/preview?step=1

## Steps

1. Start by opening your repository in Sourcetree.
2. Look at the 'Branches' panel on the left side of your Sourcetree window.
3. In the branches panel, locate the branch you want to check out.
4. If prompted with options, simply confirm the branch you want to switch to.
5. Right-click on the branch name and select 'Checkout' from the context menu.
6. That's it! Sourcetree will now switch your working copy to the selected branch. You're ready to code.
