From 770e1feb69451d08a657b6ef47e4d33c865231b1 Mon Sep 17 00:00:00 2001 From: Patrick Knight Date: Tue, 25 Feb 2025 03:07:23 -0600 Subject: [PATCH] Update changing-the-default-branch.md (#54513) Co-authored-by: Felicity Chapman Co-authored-by: vanessa-kalu Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com> --- .../changing-the-default-branch.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch.md b/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch.md index 302b1cd5a328..c0a49763a289 100644 --- a/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch.md +++ b/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch.md @@ -34,6 +34,12 @@ You can also rename the default branch. For more information, see [AUTOTITLE](/r To change the default branch, your repository must have more than one branch. For more information, see [AUTOTITLE](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository#creating-a-branch). +{% ifversion not fpt %} + +Rulesets at the organization{% ifversion ghec %} or enterprise{% endif %} level that apply to branches of a repository will not allow the repository administrator to rename branches of the targeted repository or change the default branch to another branch. See [AUTOTITLE](/organizations/managing-organization-settings/managing-rulesets-for-repositories-in-your-organization){% ifversion ghec %} or [AUTOTITLE](/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-governance){% endif %}. + +{% endif %} + Additionally, you need to have admin access to a repository to change the default branch. ## Changing the default branch