From f10f22688c0bc2ef5b8b331b5a40352edcf47bd4 Mon Sep 17 00:00:00 2001 From: mc <42146119+mchammer01@users.noreply.github.com> Date: Fri, 6 Jan 2023 13:52:15 +0000 Subject: [PATCH] Replace `master` with `main` (#33789) --- .../adding-locally-hosted-code-to-github.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/adding-locally-hosted-code-to-github.md b/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/adding-locally-hosted-code-to-github.md index d42181b790..a78e3f6dc1 100644 --- a/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/adding-locally-hosted-code-to-github.md +++ b/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/adding-locally-hosted-code-to-github.md @@ -58,7 +58,7 @@ If you have existing source code or repositories stored locally on your computer ![Create New Repository drop-down](/assets/images/help/repository/repo-create.png) {% data reusables.command_line.open_the_multi_os_terminal %} 3. Change the current working directory to your local project. -4. Use the `init` command to initialize the local directory as a Git repository. By default, the initial branch is called `master`. +4. Use the `init` command to initialize the local directory as a Git repository. By default, the initial branch is called `main`. If you’re using Git 2.28.0 or a later version, you can set the name of the default branch using `-b`. @@ -105,7 +105,7 @@ If you have existing source code or repositories stored locally on your computer ![Create New Repository drop-down](/assets/images/help/repository/repo-create.png) {% data reusables.command_line.open_the_multi_os_terminal %} 3. Change the current working directory to your local project. -4. Use the `init` command to initialize the local directory as a Git repository. By default, the initial branch is called `master`. +4. Use the `init` command to initialize the local directory as a Git repository. By default, the initial branch is called `main`. If you’re using Git 2.28.0 or a later version, you can set the name of the default branch using `-b`. @@ -151,7 +151,7 @@ If you have existing source code or repositories stored locally on your computer ![Create New Repository drop-down](/assets/images/help/repository/repo-create.png) {% data reusables.command_line.open_the_multi_os_terminal %} 3. Change the current working directory to your local project. -4. Use the `init` command to initialize the local directory as a Git repository. By default, the initial branch is called `master`. +4. Use the `init` command to initialize the local directory as a Git repository. By default, the initial branch is called `main`. If you’re using Git 2.28.0 or a later version, you can set the name of the default branch using `-b`.