# How to Merge Branches in Sourcetree

> To merge branches in Sourcetree, open your repository, double-click the target branch in the sidebar or right-click to select 'Merge Sub into current branch', and click 'OK' to confirm the action.

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

## Steps

1. Open Sourcetree and navigate to your repository.
2. Double-click the branch name in the sidebar or right-click it and select 'Merge Sub into current branch'.
3. Click 'OK' to confirm the merge action.
4. That's it! You've successfully merged branches in Sourcetree.
