shlogg · Early preview
Sospeter Mong'are @msnmongare

Reverting Merged Pull Requests On GitHub: A Step-by-Step Guide

Revert a merged PR on GitHub: Click "Revert" button on PR page, review & merge new PR to undo changes. Alternatively, use `git revert` locally with commit hash & push changes.

If you’ve merged a pull request (PR) in GitHub and need to undo those changes, there are several ways to revert the merge. This article walks you through the process step-by-step, whether you’re working directly in GitHub or handling the changes locally.


  
  
  1. Reverting the Merge Using GitHub’s Interface

This is the simplest method to revert a merged pull request directly on GitHub.

  
  
  Steps:


Navigate to the Pull Request:

Go to the repository on GitHub and click on the Pull Requests tab.
Locate the merged pull request you want to revert.

Click the Revert Button:

Open the mer...