Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

managing-the-default-branch-name-for-repositories-in-your-organization.md 2.8 KB

You have to be logged in to leave a comment. Sign In
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]

About management of the default branch name

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."

Setting the default branch name

{% 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. Override button 4. Type the default name that you would like to use for new branches. Text box for entering default name 5. Click Update. Update button

Further reading

Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...