Quick summary
Squashing commits in Sourcetree combines multiple commits into one using the interactive rebase feature, keeping your Git history clean and readable. This guide walks you through the exact steps to right-click a commit, configure the rebase window, and confirm the squash without touching the command line.
Steps
- Open Sourcetree and navigate to your repository.
- In the history view, find the commits you want to squash. Right-click the commit one before the oldest commit you want to squash into and select 'Rebase children of <commit> interactively…'
- The Interactive Rebase window will open — leave the top commit unchanged and change the action on the remaining commits you want to squash.
- Click 'OK' to confirm and finish the squash.
- Sourcetree will perform the rebase and squash the commits into a single commit in your history.



