How to Merge Branches in Sourcetree
- George Apostolov
How to Merge Branches in Sourcetree: step-by-step guide
Open Sourcetree and navigate to your repository.
Double-click the branch name in the sidebar or right-click it and select 'Merge Sub into current branch'.
Click 'OK' to confirm the merge action.
That's it! You've successfully merged branches in Sourcetree.
Quick answer: 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.
About this Sourcetree tutorial
Combine code branches efficiently in Sourcetree by selecting your target branch in the sidebar and confirming the merge prompt. This guide shows how to merge Branches in Sourcetree in 4 steps, starting with "Open Sourcetree and navigate to your repository" and finishing with "That's it! You've successfully merged branches in Sourcetree". The interactive demo above is a click-through copy of the real Sourcetree interface, so you can rehearse each step before doing it in your own account.
Frequently asked questions
How many steps does it take to merge Branches in Sourcetree?
4 steps. Each one is listed in order above, and the demo highlights exactly where to click.
Can I try it without changing my own account?
Yes. Clicking through the demo doesn't touch your Sourcetree data or settings. Once you know the flow, repeat it in your own workspace.
This tutorial is filed under Sourcetree. Related guides: How to Pull from Sourcetree, How to Push Code to Bitbucket using Sourcetree and How to Rebase Sourcetree. Last reviewed 05 Oct 2026.
Create your first interactive demo in minutes
No credit card required • Start building today





