LiveDemo - Open-source alternative to Storylane, Navattic, and Arcade | Product Hunt

How to Revert a Pull Request in Github



How to Revert a Pull Request in Github: step-by-step guide

  1. In your 'Pull requests' tab, click on the request.

  2. Find the commit you want to undo, click on it, and then click 'Revert'.

  3. After reverting, it will create a new pull request that undoes the changes made in the selected commit.

  4. By following these steps, you can revert a pull request in Github.

Quick answer: To undo changes on GitHub, open the pull request tab, select the target request, locate and click the specific commit, and click Revert. This action automatically generates a new pull request that reverses the previously made changes.

About this GitHub tutorial

Undo recent code changes efficiently by selecting and reverting specific commits on GitHub to generate a new reversal pull request. This guide shows how to revert a Pull Request in Github in 4 steps, starting with "In your 'Pull requests' tab, click on the request" and finishing with "By following these steps, you can revert a pull request in Github". The interactive demo above is a click-through copy of the real GitHub interface, so you can rehearse each step before doing it in your own account.

Frequently asked questions

How many steps does it take to revert a Pull Request in Github?

4 steps. Each one is listed in order above, and the demo highlights exactly where to click.

Can I try it without changing my own account?

Yes. Clicking through the demo doesn't touch your GitHub data or settings. Once you know the flow, repeat it in your own workspace.

This tutorial is filed under GitHub. Related guides: How to Revert to a Previous Commit in Github, How to Search Code in Github and How to See Commit History in Github. Last reviewed 05 Oct 2026.

LiveDemo - Open-source alternative to Storylane, Navattic, and Arcade | Product Hunt
🚀

Create your first interactive demo in minutes

No credit card required • Start building today

Start free→

This website uses cookies to enhance the user experience.

AcceptDecline