Syncing a GitHub fork

https://docs.github.com/en/github/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

  1. If you haven’t configured an upstream remote, do this:

    git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
    
  2. Fetch branches and commits from upstream repo:

    git fetch upstream
    
  3. Checkout local branch to update

  4. Merge upstream into current local branch

    git merge upstream/BRANCHNAME