From a791fd11c25ecda6cf54d80166be39e078d53ee9 Mon Sep 17 00:00:00 2001 From: Ahmed Mahran Date: Sun, 22 Nov 2020 20:11:41 +0500 Subject: [PATCH] The git commands here seems outdated. It did not work for me, so I updated it accordingly. --- ...ng-an-existing-project-to-github-using-the-command-line.md | 4 ++-- 1 file changed, 2 insertions(+), 2 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 cde638a77d06..b7a3bc9f9b61 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 @@ -27,7 +27,7 @@ versions: 3. Change the current working directory to your local project. 4. Initialize the local directory as a Git repository. ```shell - $ git init -b main + $ git init ``` 5. Add the files in your new local repository. This stages them for the first commit. ```shell @@ -87,7 +87,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 ```