Skip to main content

Allowing repository admins to rename branches with organization rulesets

Organization owners can allow people with repository admin permission to rename branches that are targeted by organization rulesets.

Wer kann dieses Feature verwenden?

Organization owners can manage this setting.

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.

Hinweis

Even with this setting enabled, changing the default branch of a repository still requires an organization administrator when organization rulesets are in play.

  1. Klicke in der rechten oberen Ecke von GitHub auf dein Profilbild und dann auf Your organizations.

  2. Wählen Sie eine Organisation aus, indem Sie darauf klicken.

  3. Klicke unter dem Organisationsnamen auf Settings. Wenn die Registerkarte „Einstellungen“ nicht angezeigt wird, wähle im Dropdownmenü die Option Einstellungen aus.

    Screenshot der Registerkarten im Profil einer Organisation. Die Registerkarte „Einstellungen“ ist dunkelorange umrandet.

  4. Klicke im Abschnitt „Access“ der Randleiste auf Member privileges.

  5. Under "Branch renames", select Allow repository administrators to rename branches protected by organization rules.

  6. Click Save.

Further reading