Skip to content

Commit 3744366

Browse files
jasonfbam-stead
andauthored
Update configuring-commit-squashing-for-pull-requests.md (#27909)
Co-authored-by: Anne-Marie <[email protected]>
1 parent eec5ed1 commit 3744366

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/configuring-commit-squashing-for-pull-requests.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ shortTitle: Configure commit squashing
2020

2121
{% data reusables.repositories.navigate-to-repo %}
2222
{% data reusables.repositories.sidebar-settings %}
23+
1. On the "General" settings page (which is selected by default), scroll down to the section marked "Pull Requests".
2324
1. Under "Pull Requests", select **Allow squash merging**. This allows contributors to merge a pull request by squashing all commits into a single commit. The default commit message presented to contributors when merging is the commit title and message if the pull request contains only 1 commit, or the pull request title and list of commits if the pull request contains 2 or more commits. {% ifversion ghes = 3.6 %} To always use the title of the pull request regardless of the number of commits in the pull request select **Default to PR title for squash merge commits**.{% endif %}
2425
{% ifversion default-merge-squash-commit-message %}
2526
1. Optionally, under **Allow squash merging**, select the dropdown menu, then click the format of the default squash commit message presented to contributors when merging.

0 commit comments

Comments
 (0)