Are you sure you want to delete this access key?
title | intro | redirect_from | permissions | versions | topics |
---|---|---|---|---|---|
Managing the default branch name for repositories in your organization | You can set the default branch name for repositories that members create in your organization on {% data variables.product.product_location %}. | [/github/setting-up-and-managing-organizations-and-teams/managing-the-default-branch-name-for-repositories-in-your-organization] | Organization owners can manage the default branch name for new repositories in the organization. | [{free-pro-team *} {enterprise-server >=2.23} {github-ae *}] | [Organizations Teams] |
When a member of your organization creates a new repository in your organization, the repository contains one branch, which is the default branch. You can change the name that {% data variables.product.product_name %} uses for the default branch in new repositories that members of your organization create. For more information about the default branch, see "About branches."
{% data reusables.branches.change-default-branch %}
If an enterprise owner has enforced a policy for the default branch name for your enterprise, you cannot set a default branch name for your organization. Instead, you can change the default branch for individual repositories. For more information, see {% if currentVersion == "free-pro-team@latest" %}"Enforcing repository management policies in your enterprise"{% else %}"Enforcing repository management policies in your enterprise"{% endif %} and "Changing the default branch."
{% data reusables.profile.access_org %}
{% data reusables.profile.org_settings %}
{% data reusables.organizations.repository-defaults %}
3. Under "Repository default branch", click Change default branch name now.
4. Type the default name that you would like to use for new branches.
5. Click Update.
Press p or to see the previous file or, n or to see the next file
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?