Skip to content

Commit 59b1331

Browse files
authored
Merge pull request #49961 from github/repo-sync
Repo sync
2 parents e5f1f0f + 0d48e6a commit 59b1331

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

content/pull-requests/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-repository-for-a-fork.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ shortTitle: Configure a remote repository
2727
1. Specify a new remote _upstream_ repository that will be synced with the fork.
2828

2929
```shell
30-
git remote add upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
30+
git remote add upstream https://{% data variables.command_line.codeblock %}/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git
3131
```
3232

3333
1. Verify the new upstream repository you've specified for your fork.
@@ -36,6 +36,6 @@ shortTitle: Configure a remote repository
3636
$ git remote -v
3737
> origin https://{% data variables.command_line.codeblock %}/YOUR-USERNAME/YOUR-FORK.git (fetch)
3838
> origin https://{% data variables.command_line.codeblock %}/YOUR-USERNAME/YOUR-FORK.git (push)
39-
> upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (fetch)
40-
> upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (push)
39+
> upstream https://{% data variables.command_line.codeblock %}/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (fetch)
40+
> upstream https://{% data variables.command_line.codeblock %}/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (push)
4141
```

content/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ When you fork a project in order to propose changes to the upstream repository,
172172
1. Type `git remote add upstream`, and then paste the URL you copied in Step 3 and press **Enter**. It will look like this:
173173

174174
```shell
175-
git remote add upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/Spoon-Knife.git
175+
git remote add upstream https://{% data variables.command_line.codeblock %}/ORIGINAL-OWNER/Spoon-Knife.git
176176
```
177177

178178
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,
181181
$ git remote -v
182182
> origin https://{% data variables.command_line.codeblock %}/YOUR-USERNAME/YOUR-FORK.git (fetch)
183183
> origin https://{% data variables.command_line.codeblock %}/YOUR-USERNAME/YOUR-FORK.git (push)
184-
> upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (fetch)
185-
> upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (push)
184+
> upstream https://{% data variables.command_line.codeblock %}/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (fetch)
185+
> upstream https://{% data variables.command_line.codeblock %}/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (push)
186186
```
187187

188188
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)."

0 commit comments

Comments
 (0)