Skip to content

Commit

Permalink
Update changing-the-default-branch.md (#54513)
Browse files Browse the repository at this point in the history
Co-authored-by: Felicity Chapman <[email protected]>
Co-authored-by: vanessa-kalu <[email protected]>
Co-authored-by: Sophie <[email protected]>
  • Loading branch information
4 people authored Feb 25, 2025
1 parent 7a9813a commit 770e1fe
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 770e1fe

Please sign in to comment.