How to Delete a Commit in Sourcetree
- George Apostolov
This guide is an interactive LiveDemo. Create interactive demos of your own product: Interactive demo software · Interactive customer onboarding guides · Start free
How to Delete a Commit in Sourcetree: step-by-step guide
Open your repository in Sourcetree.
Go to the 'History' view.
Right-click the latest commit and click 'Reverse commit'.
Click 'Yes' to reverse the commit.
Quick answer: To delete a commit in Sourcetree, open your repository, navigate to the History view, right-click the latest commit, select Reverse commit, and then confirm by clicking Yes to successfully reverse the commit.
About this Sourcetree tutorial
Remove unwanted changes in Sourcetree by opening your repository, going to History, and reversing the latest commit with a single click. This guide shows how to delete a Commit in Sourcetree in 4 steps, starting with "Open your repository in Sourcetree" and finishing with "Click 'Yes' to reverse the commit". 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 delete a Commit 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 Edit Commit Message in Sourcetree, How to Force Push in Sourcetree and How to Log In Sourcetree. Last reviewed 05 Oct 2026.
Create your first interactive demo in minutes
No credit card required • Start building today





