1
0
mirror of synced 2025-12-25 02:17:36 -05:00
Files
docs/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/managing-the-default-branch-name-for-your-repositories.md
Joe Clark 74a679dc51 Make product variables for Enterprise translation-friendly (#31628)
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Evan Bonsignori <ebonsignori@github.com>
2022-10-17 18:54:05 +00:00

2.0 KiB

title, intro, versions, topics, redirect_from, shortTitle
title intro versions topics redirect_from shortTitle
Managing the default branch name for your repositories You can set the default branch name for new repositories that you create on {% data variables.location.product_location %}.
fpt ghes ghae ghec
* * * *
Accounts
/github/setting-up-and-managing-your-github-user-account/managing-the-default-branch-name-for-your-repositories
/github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-the-default-branch-name-for-your-repositories
/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-the-default-branch-name-for-your-repositories
Manage default branch name

About management of the default branch name

When you create a new repository on {% data variables.location.product_location %}, 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 you create. For more information about the default branch, see "About branches."

{% data reusables.branches.change-default-branch %}

Setting the default branch name

{% data reusables.user-settings.access_settings %} {% data reusables.user-settings.repo-tab %} 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