From b33e1bf4c1b2541ac4158f21b1ca2c8ccdc41493 Mon Sep 17 00:00:00 2001 From: dgdg-app <119982000+dgdg-app@users.noreply.github.com> Date: Mon, 12 Dec 2022 10:19:14 -0500 Subject: [PATCH 1/2] --set-upstream-to is now favored https://stackoverflow.com/a/18032014 --- content/get-started/using-git/about-git.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/get-started/using-git/about-git.md b/content/get-started/using-git/about-git.md index f94c074cedb7..4175a90df62e 100644 --- a/content/get-started/using-git/about-git.md +++ b/content/get-started/using-git/about-git.md @@ -97,7 +97,7 @@ git add file1.md file2.md git commit -m "my snapshot" # push changes to github -git push --set-upstream origin my-branch +git push --set-upstream-to my-branch ``` ### Example: Start a new repository and publish it to {% data variables.product.product_name %} From af646361d38fa85b7831b77ac928b617e022349d Mon Sep 17 00:00:00 2001 From: dgdg-app <119982000+dgdg-app@users.noreply.github.com> Date: Mon, 12 Dec 2022 10:45:17 -0500 Subject: [PATCH 2/2] replace '--set-upstream origin' with --set-upstream-to https://stackoverflow.com/a/18032014 --- content/get-started/using-git/about-git.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/get-started/using-git/about-git.md b/content/get-started/using-git/about-git.md index 4175a90df62e..3b6f22a1a1fb 100644 --- a/content/get-started/using-git/about-git.md +++ b/content/get-started/using-git/about-git.md @@ -124,7 +124,7 @@ git commit -m "add README to initial commit" git remote add origin https://github.com/YOUR-USERNAME/YOUR-REPOSITORY-NAME.git # push changes to github -git push --set-upstream origin main +git push --set-upstream-to main ``` ### Example: contribute to an existing branch on {% data variables.product.product_name %}