This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /Sourcetree

How to Revert Commit in GIT Sourcetree

Updated on:
June 5, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to safely revert a Git commit using Sourcetree.

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

  1. Open Sourcetree and load your repository.
  2. Navigate to the History tab to view the full commit log.
  3. Right-click the commit you want to revert and select Reverse commit from the context menu.
  4. In the confirmation popup, click Yes to confirm the revert action.
  5. Sourcetree creates a new commit that undoes the changes from the selected commit, keeping your history intact.

📌 Why this matters

Reverting a Git commit in Sourcetree is a critical skill for developers who need to undo changes without rewriting repository history. The Reverse commit feature in Sourcetree provides a safe, GUI-based alternative to complex command-line Git revert operations, reducing the risk of accidental data loss. By creating a new commit that undoes the targeted changes, teams can maintain a clean, auditable history while quickly recovering from mistakes. This makes Sourcetree an essential tool for Git version control workflows in both solo and collaborative development environments.
Your product deserves an interactive demo
Start free
Similar Articles
Sourcetree

How to Update Sourcetree Mercurial

Madhav Bhandari
Director of Marketing @ Storylane
Sourcetree

How to Add SSH Key in Sourcetree

Madhav Bhandari
Director of Marketing @ Storylane
Sourcetree

How to Change User in Sourcetree

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Hubs
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it