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

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

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

Create your own interactive guide with Guideflow

Why should you allow squash merging for pull requests in GitHub

GitHub is a leading platform for collaborative coding and version control management.

Enabling squash merging for pull requests in GitHub streamlines collaborative workflows by merging a series of commits into a single, more manageable commit.

This practice simplifies the project history, making it cleaner and easier to navigate. Furthermore, it helps maintain efficiency by eliminating redundant information, allowing developers to focus on meaningful code changes.

Overall, using squash merging enhances productivity, promotes clear communication among team members, and contributes to a more organized codebase.

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

Create your first demo in less than 30 seconds.