# How to Revert Commit in GIT Sourcetree

> 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.

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

## Steps

1. Open Sourcetree and load your repository.
2. Go to the 'History' tab.
3. Right-click the commit you want to revert and select ‘Reverse commit'.
4. In the popup, confirm by clicking 'Yes'.
5. Following these steps creates a new commit that undoes the changes of the selected commit.
