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 disable merge commits for pull requests in GitHub

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

  1. First, open the repository you want to disable merge commits for
  2. Next click on "Settings" tab in the top navigation menu
  3. In the left settings sidebar, click "General"
  4. Then scroll down to the "Pull Requests" section
  5. Finally Uncheck the "Allow merge commits" checkbox to disable merge commits

Create your own interactive guide with Guideflow

Why should you disable merge commits for pull requests in GitHub

GitHub is a powerful platform designed to streamline collaborative coding and project management effortlessly.

Disabling merge commits for pull requests in GitHub helps maintain a clean and linear project history. This feature allows developers to avoid unnecessary noise by removing extraneous merge commit messages that can clutter the project timeline.

Using this option enhances code readability by preserving a straightforward chronological order of changes. It fosters smoother collaboration, making it easier for teams to track progress and simplify troubleshooting, ultimately boosting productivity.

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

Create your first demo in less than 30 seconds.