GitHub: Reopening a merged pull request

  • I made some changes
  • I submitted a pull request
  • The pull request was accepted and merged.
  • We found a bug
  • The changes were removed again whilst I fixed the bug.

I’ve now fixed the bug and want to resubmit the pull request with 1 extra commit. Is there any way to reopen the pull request or update it, or do I have to create a new pull request, type out the description etc again? Gitorious has this feature and we’ve recently moved to GitHub.

  • Can't log in to Github for Mac client after changing my computer's name
  • Showing the latest changes of each subdirectory in git
  • Error when push commits with Github: fatal: could not read Username
  • Git branch overwrites master when merging without offering conflicts
  • How to indentify which commit introduce which changes in a octopuss merge
  • Git fails when pushing commit to github
  • Unable to resolve reference refs /refs/remotes/origin/branch while pushing after merging branches
  • PHP Frameworks and Project Repositories
  • Git command error
  • Git merge testing branch (final commit) to master branch
  • git equivalent to `svn export` or github workaround
  • Username of comitter is not clickable on github website
  • 4 Solutions collect form web for “GitHub: Reopening a merged pull request”

    The answer seems to be: You can’t.

    Once a pull request is merged and closed, it is locked forever and cannot be reopened. If your pull request is merged, closed, then your changes are pulled out (via force pushing backwards to before the merge), you will need to add commits to the branch and create a new pull request, copying all the details over and probably providing a link to the original pull request to manually save the history.

    Might be a nice feature request for future GitHub.

    I just successfully reopened a pull request by

    1. Commenting on the pull request
    2. Clicking the ‘Submit and re-open’ button which appeared on the comment form.

    Just derive a new branch from the existing branch where you have done extra 1 commit. From there submit the pull request.

    You can use the revert action:

    enter image description here

    It will create another pull request undoing all the changes did in the merged PR.

    Git Baby is a git and github fan, let's start git clone.