Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.74 KB

configuring-commit-squashing-for-pull-requests.md

File metadata and controls

30 lines (26 loc) · 1.74 KB
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.
/articles/configuring-commit-squashing-for-pull-requests
/github/administering-a-repository/configuring-commit-squashing-for-pull-requests
fpt ghes ghae
*
*
*
Repositories
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. 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