Skip to content

Commit 23732ff

Browse files
authored
repo sync
2 parents d2e23ea + 625f912 commit 23732ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/github/collaborating-with-issues-and-pull-requests/syncing-a-fork.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Before you can sync your fork with an upstream repository, you must [configure a
1313

1414
{% data reusables.command_line.open_the_multi_os_terminal %}
1515
2. Change the current working directory to your local project.
16-
3. Fetch the branches and their respective commits from the upstream repository. Commits to `main` will be stored in a local branch, `upstream/main`.
16+
3. Fetch the branches and their respective commits from the upstream repository. Commits to `BRANCHNAME` will be stored in the local branch `upstream/BRANCHNAME`.
1717
```shell
1818
$ git fetch upstream
1919
> remote: Counting objects: 75, done.
@@ -23,12 +23,12 @@ Before you can sync your fork with an upstream repository, you must [configure a
2323
> From https://{% data variables.command_line.codeblock %}/<em>ORIGINAL_OWNER</em>/<em>ORIGINAL_REPOSITORY</em>
2424
> * [new branch] main -> upstream/main
2525
```
26-
4. Check out your fork's local `main` branch.
26+
4. Check out your fork's local default branch - in this case, we use `main`.
2727
```shell
2828
$ git checkout main
2929
> Switched to branch 'main'
3030
```
31-
5. Merge the changes from `upstream/main` into your local `main` branch. This brings your fork's `main` branch into sync with the upstream repository, without losing your local changes.
31+
5. Merge the changes from the upstream default branch - in this case, `upstream/main` - into your local default branch. This brings your fork's default branch into sync with the upstream repository, without losing your local changes.
3232
```shell
3333
$ git merge upstream/main
3434
> Updating a422352..5fdff0f

0 commit comments

Comments
 (0)