Merging Pull Requests

Merge pull requests in the GitHub web UI to accept committed changes to the main branch.

Prerequisites

You have a pull request that’s ready to be merged.

Steps

  1. In your repository, go to the Pull requests tab of the corresponding branch.
  2. Click Merge pull request.
  3. Optional: In the Add a comment section, enter a comment for the pull request.
  4. Click Confirm merge.

Result

  • A success message appears: Pull request successfully merged and closed.
  • Your changes are now incorporated into the main branch.

Next step

Deleting Branches