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

Примечание.

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. В поле имени репозитория щелкните Запросы на вытягивание.

    Снимок экрана: главная страница репозитория. На горизонтальной панели навигации вкладка с меткой "Запросы на вытягивание" выделена темно-оранжевым цветом.

  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.