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



