From 3345e0dde860e4cef64740992d9234b8b31afef7 Mon Sep 17 00:00:00 2001 From: tvachkov <53747873+tvachkov@users.noreply.github.com> Date: Sun, 11 Oct 2020 08:37:42 +0200 Subject: [PATCH 1/2] Replaced "main" by "master" The default branch is normally called master, not main. --- ...-an-existing-project-to-github-using-the-command-line.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line.md b/content/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line.md index a2caca65584c..04c3a57290ea 100644 --- a/content/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line.md +++ b/content/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line.md @@ -49,7 +49,7 @@ versions: ``` 9. [Push the changes](/articles/pushing-commits-to-a-remote-repository/) in your local repository to {% data variables.product.product_location %}. ```shell - $ git push -u origin main + $ git push -u origin master # Pushes the changes in your local repository up to the remote repository you specified as the origin ``` @@ -86,7 +86,7 @@ versions: ``` 9. [Push the changes](/articles/pushing-commits-to-a-remote-repository/) in your local repository to {% data variables.product.product_location %}. ```shell - $ git push origin main + $ git push origin master # Pushes the changes in your local repository up to the remote repository you specified as the origin ``` @@ -123,7 +123,7 @@ versions: ``` 9. [Push the changes](/articles/pushing-commits-to-a-remote-repository/) in your local repository to {% data variables.product.product_location %}. ```shell - $ git push origin main + $ git push origin master # Pushes the changes in your local repository up to the remote repository you specified as the origin ``` From 865d29b13f2f590553417512c5dde4c102511ca7 Mon Sep 17 00:00:00 2001 From: tvachkov <53747873+tvachkov@users.noreply.github.com> Date: Sat, 24 Oct 2020 08:33:17 +0200 Subject: [PATCH 2/2] New changes: git init -b main Aligning the init command to the push command: both are considering "main" instead of "master" --- ...sting-project-to-github-using-the-command-line.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line.md b/content/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line.md index 04c3a57290ea..2fb8281f1859 100644 --- a/content/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line.md +++ b/content/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line.md @@ -26,7 +26,7 @@ versions: 3. Change the current working directory to your local project. 4. Initialize the local directory as a Git repository. ```shell - $ git init + $ git init -b main ``` 5. Add the files in your new local repository. This stages them for the first commit. ```shell @@ -49,7 +49,7 @@ versions: ``` 9. [Push the changes](/articles/pushing-commits-to-a-remote-repository/) in your local repository to {% data variables.product.product_location %}. ```shell - $ git push -u origin master + $ git push -u origin main # Pushes the changes in your local repository up to the remote repository you specified as the origin ``` @@ -63,7 +63,7 @@ versions: 3. Change the current working directory to your local project. 4. Initialize the local directory as a Git repository. ```shell - $ git init + $ git init -b main ``` 5. Add the files in your new local repository. This stages them for the first commit. ```shell @@ -86,7 +86,7 @@ versions: ``` 9. [Push the changes](/articles/pushing-commits-to-a-remote-repository/) in your local repository to {% data variables.product.product_location %}. ```shell - $ git push origin master + $ git push origin main # Pushes the changes in your local repository up to the remote repository you specified as the origin ``` @@ -100,7 +100,7 @@ versions: 3. Change the current working directory to your local project. 4. Initialize the local directory as a Git repository. ```shell - $ git init + $ git init -b main ``` 5. Add the files in your new local repository. This stages them for the first commit. ```shell @@ -123,7 +123,7 @@ versions: ``` 9. [Push the changes](/articles/pushing-commits-to-a-remote-repository/) in your local repository to {% data variables.product.product_location %}. ```shell - $ git push origin master + $ git push origin main # Pushes the changes in your local repository up to the remote repository you specified as the origin ```