..

Updating a forked repository

When your fork is out of sync with the original repo

# Add new remote upstream repository
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git

# Sync your forked repository
git fetch upstream
git checkout master
git merge upstream/master

# Alternatively, update local copy
git pull

Sources:

https://www.freecodecamp.org/news/how-to-sync-your-fork-with-the-original-git-repository/

https://docs.github.com/en/github/getting-started-with-github/fork-a-repo