1
0
mirror of synced 2025-12-21 19:06:49 -05:00
Files
docs/content/github/collaborating-with-issues-and-pull-requests/reverting-a-pull-request.md
Jason Etcovitch caaee7a124 Update all files to use {% data %} (#15253)
* Add back changes from prior to purge

* Manually fix some invalid Liquid

* Updoot render-content

* Improve test messages to show correct output

* Run el scripto

* Pass the remaining test
2020-09-29 16:01:04 -04:00

1.4 KiB

title, intro, redirect_from, versions
title intro redirect_from versions
Reverting a pull request You can revert a pull request after it's been merged to the upstream branch.
/articles/reverting-a-pull-request
free-pro-team enterprise-server
* *

About reverting a pull request

Reverting a pull request on {% data variables.product.product_name %} creates a new pull request that contains one revert of the merge commit from the original merged pull request.

Reverting a pull request

{% note %}

Note: You may need to revert the individual commits in your pull request if either of the following is true.

  • Reverting the pull request causes merge conflicts
  • The original pull request was not originally merged on {% data variables.product.product_name %}. For example, someone could have merged the pull request using a fast-forward merge on the command line.

For more information about using Git to manually revert individual commits, see Git revert in the Git documentation.

{% endnote %}

{% data reusables.repositories.sidebar-pr %} 2. In the "Pull Requests" list, click the pull request you'd like to revert. 3. Near the bottom of the pull request, click Revert. Revert pull request link 4. Merge the resulting pull request. For more information, see "Merging a pull request."