How to Revert Commit in GIT Sourcetree
- George Apostolov
How to Revert Commit in GIT Sourcetree: step-by-step guide
Open Sourcetree and load your repository.
Go to the 'History' tab.
Right-click the commit you want to revert and select ‘Reverse commit'.
In the popup, confirm by clicking 'Yes'.
Following these steps creates a new commit that undoes the changes of the selected commit.
Quick answer: To revert a commit in Sourcetree, open your repository, navigate to the History tab, right-click the target commit, and select Reverse commit. Finally, confirm the action in the popup to automatically generate a new commit that undoes the previous changes.
About this Sourcetree tutorial
Undo changes easily in Sourcetree by accessing your repository history, reversing the desired commit, and confirming the prompt. This guide shows how to revert Commit in GIT Sourcetree in 5 steps, starting with "Open Sourcetree and load your repository" and finishing with "Following these steps creates a new commit that undoes the changes of the selected 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 revert Commit in GIT Sourcetree?
5 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 Squash Commits Sourcetree, How to Sync Sourcetree with Visual Studio Code and How to Tag in Sourcetree. Last reviewed 05 Oct 2026.
Create your first interactive demo in minutes
No credit card required • Start building today





