1
0
mirror of synced 2025-12-23 11:54:18 -05:00
Files
docs/content/github/administering-a-repository/configuring-commit-squashing-for-pull-requests.md
2020-11-02 15:12:44 -06:00

1.4 KiB

title, intro, redirect_from, versions
title intro redirect_from versions
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.
/articles/configuring-commit-squashing-for-pull-requests
free-pro-team enterprise-server github-ae
* * *

{% 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. allow_standard_merge_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 %} Pull request squashed commits

Further reading