Skip to main content

Reverting a pull request

Create a new pull request to revert a previously merged pull request and address merge conflicts if they arise.

About reverting a pull request

Reverting a merged pull request creates a new pull request that reverts the original merge commit. You must have write permissions in the repository.

Reverting a pull request

Note

You may need to revert individual commits if reverting the pull request causes merge conflicts or if the original pull request was not merged on GitHub. See Git revert in the Git documentation.

  1. Under your repository name, click Pull requests.

  2. In the "Pull Requests" list, click the pull request you want to revert.

  3. Near the bottom of the pull request, click Revert. If the Revert option isn't displayed, you need to ask the repository administrator for write permissions.

    Screenshot of a pull request's timeline. The "Revert" button is outlined in dark orange.

  4. Merge the resulting pull request. See Merging a pull request.