1
0
mirror of synced 2025-12-21 19:06:49 -05:00

Document features and changes for phase 2.5 of master/main transition (#15745)

This commit is contained in:
Matt Pollard
2020-10-02 01:43:01 +02:00
committed by GitHub
parent 16dd6b4654
commit aa3a4edb62
80 changed files with 206 additions and 191 deletions

View File

@@ -1,18 +1,16 @@
---
title: Managing the default branch name for your repositories
intro: You can set a default branch name for all new repositories that you create.
intro: 'You can set the default branch name new repositories that you create on {% data variables.product.product_location %}.'
versions:
free-pro-team: '*'
enterprise-server: '>=2.23'
---
### About the default branch name
### About management of the default branch name
{% data reusables.branches.new-repo-default-branch %} This branch is currently named `master`, but you can set the default branch name to anything that makes sense for your development environment.
When you create a new repository on {% data variables.product.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](/github/collaborating-with-issues-and-pull-requests/about-branches#about-the-default-branch)."
{% data reusables.branches.set-default-branch %}
{% data reusables.branches.rename-existing-branch %}
{% data reusables.branches.change-default-branch %}
### Setting the default branch name
@@ -27,4 +25,4 @@ versions:
### Further reading
- [Managing the default branch name for repositories in your organization](/github/setting-up-and-managing-organizations-and-teams/managing-the-default-branch-name-for-repositories-in-your-organization)
- "[Managing the default branch name for repositories in your organization](/github/setting-up-and-managing-organizations-and-teams/managing-the-default-branch-name-for-repositories-in-your-organization)"