Home > other >  Revert Pull Request in Github
Revert Pull Request in Github

Time:08-27

I merged a pull request accidentally in github but it needs some changes how can I revert the pull request in github to add those changes that I want. Thank you.

CodePudding user response:

  1. Open the Pull Request page: enter image description here
  2. Select your PR
  3. Click on "revert"

enter image description here

CodePudding user response:

The best thing to do would be to simply make a new PR with the changes you want to make, as no matter what you do, the "bad" PR will always be a part of the git history. That being said, follow Vertexwhan's answer if you really want to revert the merge, but keep in mind that you will not be able to re-merge the same branch later on.

  • Related