1
0
mirror of synced 2025-12-30 12:02:01 -05:00

Add text about admins renaming protected branches (#23532)

* Add text about admins renaming protected branches

ref https://github.com/github/github/pull/202855

* Update content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch.md

Co-authored-by: David Staheli <1767415+davidstaheli@users.noreply.github.com>

* added condition

added conditional so that the old text is still displayed for non-cloud/GHES customers

* Adjust the permissions property

Co-authored-by: David Staheli <1767415+davidstaheli@users.noreply.github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
This commit is contained in:
Paul Loeb
2021-12-20 05:02:03 -08:00
committed by GitHub
parent 429b4c58f2
commit eb700f8d36

View File

@@ -1,7 +1,7 @@
---
title: Renaming a branch
intro: You can change the name of a branch in a repository.
permissions: People with write permissions to a repository can rename a branch in the repository. People with admin permissions can rename the default branch.
permissions: 'People with write permissions to a repository can rename a branch in the repository unless it is the [default branch](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches#about-the-default-branch){% ifversion fpt or ghec %} or a [protected branch](/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches){% endif %}. People with admin permissions can rename the default branch{% ifversion fpt or ghec %} and protected branches{% endif %}.'
versions:
fpt: '*'
ghes: '>=3.1'