Quick summary
Reverting a Git commit in Sourcetree lets you undo changes safely by creating a new reverse commit, preserving your repository history. This step-by-step walkthrough shows exactly how to use the Reverse commit feature without rewriting any existing commits.
Steps
- Open Sourcetree and load your repository.
- Navigate to the History tab to view the full commit log.
- Right-click the commit you want to revert and select Reverse commit from the context menu.
- In the confirmation popup, click Yes to confirm the revert action.
- Sourcetree creates a new commit that undoes the changes from the selected commit, keeping your history intact.



