From 0d48e6aaf19443a47e6030027ef38b7d9ec17298 Mon Sep 17 00:00:00 2001 From: itecompro <16090309+itecompro@users.noreply.github.com> Date: Tue, 2 Apr 2024 04:36:53 +1100 Subject: [PATCH] Match "ORIGINAL_*" placeholders with "YOUR-*" placeholders (#32312) Co-authored-by: Alex Nguyen <150945400+nguyenalex836@users.noreply.github.com> --- .../configuring-a-remote-repository-for-a-fork.md | 6 +++--- .../working-with-forks/fork-a-repo.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/content/pull-requests/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-repository-for-a-fork.md b/content/pull-requests/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-repository-for-a-fork.md index adbb75eaa0..b2feb842b4 100644 --- a/content/pull-requests/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-repository-for-a-fork.md +++ b/content/pull-requests/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-repository-for-a-fork.md @@ -27,7 +27,7 @@ shortTitle: Configure a remote repository 1. Specify a new remote _upstream_ repository that will be synced with the fork. ```shell - git remote add upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git + git remote add upstream https://{% data variables.command_line.codeblock %}/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git ``` 1. Verify the new upstream repository you've specified for your fork. @@ -36,6 +36,6 @@ shortTitle: Configure a remote repository $ git remote -v > origin https://{% data variables.command_line.codeblock %}/YOUR-USERNAME/YOUR-FORK.git (fetch) > origin https://{% data variables.command_line.codeblock %}/YOUR-USERNAME/YOUR-FORK.git (push) - > upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (fetch) - > upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (push) + > upstream https://{% data variables.command_line.codeblock %}/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (fetch) + > upstream https://{% data variables.command_line.codeblock %}/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (push) ``` diff --git a/content/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo.md b/content/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo.md index 567515504f..21ba2e6bbe 100644 --- a/content/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo.md +++ b/content/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo.md @@ -172,7 +172,7 @@ When you fork a project in order to propose changes to the upstream repository, 1. Type `git remote add upstream`, and then paste the URL you copied in Step 3 and press **Enter**. It will look like this: ```shell - git remote add upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/Spoon-Knife.git + git remote add upstream https://{% data variables.command_line.codeblock %}/ORIGINAL-OWNER/Spoon-Knife.git ``` 1. To verify the new upstream repository you have specified for your fork, type `git remote -v` again. You should see the URL for your fork as `origin`, and the URL for the upstream repository as `upstream`. @@ -181,8 +181,8 @@ When you fork a project in order to propose changes to the upstream repository, $ git remote -v > origin https://{% data variables.command_line.codeblock %}/YOUR-USERNAME/YOUR-FORK.git (fetch) > origin https://{% data variables.command_line.codeblock %}/YOUR-USERNAME/YOUR-FORK.git (push) - > upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (fetch) - > upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (push) + > upstream https://{% data variables.command_line.codeblock %}/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (fetch) + > upstream https://{% data variables.command_line.codeblock %}/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (push) ``` Now, you can keep your fork synced with the upstream repository with a few Git commands. For more information, see "[AUTOTITLE](/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork)."