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 squash merging for pull requests in GitHub

Here is how to disable squash merging for pull requests in github

  1. First, open the repository where you want to disable squash merging
  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 and locate the "Allow squash merging" option
  5. Finally uncheck the checkbox to disable squash merging

Create your own interactive guide with Guideflow

Why should you disable squash merging for pull requests in GitHub

GitHub is a powerful platform designed to streamline collaboration and version control for developers worldwide.

Disabling squash merging for pull requests in GitHub is a feature that allows teams to maintain individual commit history, providing a detailed record of development progress.

This approach ensures that each contribution is visible, clarifying the evolution of the codebase and offering an insightful audit trail.

Opting out of squash merges supports code consistency and helps in tracking changes, which can be vital for complex projects or compliance requirements.

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

Create your first demo in less than 30 seconds.