You must configure a remote that points to the upstream repository in Git to sync changes you make in a fork with the original repository. This also allows you to sync changes made in the original repository with the fork.
Open Terminal.
List the current configured remote repository for your fork.
$ git checkout master
> Switched to branch 'master'
Merge the changes from upstream/master into your local master branch. This brings your fork's master branch into sync with the upstream repository, without losing your local changes.
Working with forks
Configuring a remote for a fork
You must configure a remote that points to the upstream repository in Git to sync changes you make in a fork with the original repository. This also allows you to sync changes made in the original repository with the fork.
Logging
2020-05-07 10:13:28 initialize
Syncing a fork
Sync a fork of a repository to keep it up-to-date with the upstream repository.
Before you can sync your fork with an upstream repository, you must configure a remote that points to the upstream repository in Git.
If your local branch didn't have any unique commits, Git will instead perform a "fast-forward":
Tip: Syncing your fork only updates your local copy of the repository. To update your fork on GitHub, you must push your changes.
Logging
2020-05-07 09:58:15 initialize