Skip to content

Commit ff18e48

Browse files
authored
Merge pull request #49962 from github/repo-sync
Repo sync
2 parents 59b1331 + 8df4a93 commit ff18e48

File tree

1 file changed

+4
-4
lines changed
  • content/pull-requests/collaborating-with-pull-requests/working-with-forks

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ If the changes from the upstream repository cause conflicts, {% data variables.p
4242

4343
{% data reusables.cli.about-cli %} To learn more about {% data variables.product.prodname_cli %}, see "[AUTOTITLE](/github-cli/github-cli/about-github-cli)."
4444

45-
To update the remote fork from its parent, use the `gh repo sync -b BRANCHNAME` subcommand and supply your fork and branch name as arguments.
45+
To update the remote fork from its parent, use the `gh repo sync -b BRANCH-NAME` subcommand and supply your fork and branch name as arguments.
4646

4747
```shell
48-
gh repo sync owner/cli-fork -b BRANCH_NAME
48+
gh repo sync owner/cli-fork -b BRANCH-NAME
4949
```
5050

5151
If the changes from the upstream repository cause conflict then the {% data variables.product.prodname_cli %} can't sync. You can set the `--force` flag to overwrite the destination branch.
@@ -56,15 +56,15 @@ Before you can sync your fork with an upstream repository, you must configure a
5656

5757
{% data reusables.command_line.open_the_multi_os_terminal %}
5858
1. Change the current working directory to your local project.
59-
1. Fetch the branches and their respective commits from the upstream repository. Commits to `BRANCHNAME` will be stored in the local branch `upstream/BRANCHNAME`.
59+
1. Fetch the branches and their respective commits from the upstream repository. Commits to `BRANCH-NAME` will be stored in the local branch `upstream/BRANCH-NAME`.
6060

6161
```shell
6262
$ git fetch upstream
6363
> remote: Counting objects: 75, done.
6464
> remote: Compressing objects: 100% (53/53), done.
6565
> remote: Total 62 (delta 27), reused 44 (delta 9)
6666
> Unpacking objects: 100% (62/62), done.
67-
> From https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/ORIGINAL_REPOSITORY
67+
> From https://{% data variables.command_line.codeblock %}/ORIGINAL-OWNER/ORIGINAL-REPOSITORY
6868
> * [new branch] main -> upstream/main
6969
```
7070

0 commit comments

Comments
 (0)