Github
GitHub is a code hosting and version control platform for developers to collaborate on software projects.
Website
Industry
Website
Share this article:

How to allow merge commits for pull requests in GitHub

Here is how to allow merge commits for pull requests in github

  1. First, open the repository you want to manage
  2. Next click on "Settings" tab in the top navigation menu
  3. In the left sidebar, click on "General"
  4. Scroll down to the "Pull Requests" section and locate the "Allow merge commits" option
  5. Then check the checkbox to enable merge commits
  6. Click on "Default message" dropdown button under the "Allow merge commits" section
  7. Finally choose how GitHub formats the merge commit message from the dropdown menu

Create your own interactive guide with Guideflow

Why should you allow merge commits for pull requests in GitHub

GitHub, a pivotal platform for code collaboration, enables developers to work together seamlessly on projects.

Allowing merge commits for pull requests in GitHub ensures that contributions are accurately tracked and integrated into the main codebase. This feature brings clarity to project histories by preserving commit information, making it easier for teams to review and understand changes.

Utilizing merge commits helps maintain the integrity of the project’s history. It provides a distinct audit trail of changes, promoting transparency and fostering teamwork in a development environment.

Last update
March 31, 2026
Cursor MariaA cursor points to a button labeled "James."

Create your first demo in less than 30 seconds.