Organization owners control whether repository administrators can rename branches that are targeted by one or more branch rulesets. For existing organizations, this setting is off by default. For newly created organizations, this setting is on by default.
When this setting is enabled, repository administrators can rename these branches, provided the new branch name is still targeted by all the same organization rulesets as the current branch name. This ensures that rulesets cannot be circumvented through branch renaming.
Organization administrators can rename branches targeted by organization rulesets without restriction.
Remarque
Even with this setting enabled, changing the default branch of a repository still requires an organization administrator when organization rulesets are in play.
-
Dans le coin supérieur droit de GitHub, cliquez sur votre photo de profil, puis sur Vos organisations.
-
Sélectionnez une organisation en cliquant dessus.
-
Sous le nom de votre organisation, cliquez sur Settings. Si vous ne voyez pas l’onglet « Paramètres », sélectionnez le menu déroulant , puis cliquez sur Paramètres.

-
Dans la section « Accès » de la barre latérale, cliquez sur Privilèges des membres.
-
Under "Branch renames", select Allow repository administrators to rename branches protected by organization rules.
-
Click Save.