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 /GitHub

How to Revert a Pull Request in Github

Updated on:
May 12, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to safely undo and revert a pull request in GitHub.

Quick summary

To revert a pull request in GitHub, navigate to the Pull requests tab, select the target request, find the commit you want to undo, and click the Revert button — GitHub will automatically create a new pull request that reverses the changes. This non-destructive workflow lets developers undo merged changes without altering the repository's commit history.


Steps

  1. In your repository, go to the Pull requests tab and click on the pull request you want to revert.
  2. Find the commit you want to undo, click on it, and then click the Revert button.
  3. After reverting, GitHub automatically creates a new pull request that undoes the changes made in the selected commit.
  4. Review the newly created revert pull request to confirm the changes are correctly reversed before merging.

📌 Why this matters

Knowing how to revert a pull request in GitHub is an essential skill for any developer working in a collaborative codebase. The GitHub revert workflow lets teams safely undo merged changes by creating a new pull request that reverses a specific commit, preserving the full commit history without destructive edits. This approach reduces the risk of introducing bugs or breaking changes into production branches, enabling faster incident recovery. Whether you need to roll back a bad deployment or reverse an accidental merge, GitHub's built-in revert feature provides a clean, auditable path to restoring code stability.
Your product deserves an interactive demo
Start free
Similar Articles
GitHub

How to Import a Project from GitHub to Replit

Madhav Bhandari
Director of Marketing @ Storylane
GitHub

How to Push Code from Replit to GitHub

Madhav Bhandari
Director of Marketing @ Storylane
GitHub

How to Connect Replit to GitHub

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Buyer Hub
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
Events & webinars
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