title | intro | redirect_from | versions | topics | shortTitle | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Configuring commit squashing for pull requests |
You can enforce, allow, or disable commit squashing for all pull request merges on {% data variables.product.product_location %} in your repository. |
|
|
|
Configure commit squashing |
{% data reusables.pull_requests.configure_pull_request_merges_intro %}
{% data reusables.pull_requests.default-commit-message-squash-merge %}
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} 3. Under "Merge button", optionally select Allow merge commits. This allows contributors to merge a pull request with a full history of commits. 4. Under "Merge button", select Allow squash merging. This allows contributors to merge a pull request by squashing all commits into a single commit. If you select another merge method besides Allow squash merging, collaborators will be able to choose the type of merge commit when merging a pull request. {% data reusables.repositories.squash-and-rebase-linear-commit-hisitory %}