How to Allow Rebase Merging for Pull Requests in GitHub
In this article
This guide will show you how to enable rebase merging for pull requests in your GitHub repository. Enabling this option allows for a clean, linear commit history by adding individual commits from the head branch onto the base branch.
Explore more GitHub tutorials with interactive Saltfish walkthroughs.
Here's how to allow rebase merging for pull requests in GitHub
- Open your repository
From your GitHub dashboard, select the repository you wish to configure. This will take you to the main page of that repository.
- Go to Settings
On the repository page, locate and click the "Settings" tab in the top navigation bar to access the repository's configuration options.
- Access General settings
In the left sidebar, ensure that the "General" option is selected. This page displays the general settings for your repository.
- Locate the Pull Requests section
Scroll down the General settings page until you find the "Pull Requests" section. This area lists different merging strategies.
- Enable rebase merging
Within the "Pull Requests" section, check the box next to "Allow rebase merging". This action enables rebase merging for all pull requests in this repository.
Your turn to show how it works.
Build a walkthrough of your product with Saltfish, then share it with your customers.
Frequently Asked Questions
Rebase merging adds all commits from the head branch onto the base branch individually. This method helps maintain a linear project history, making it easier to follow changes.



