Mateo.

Git - Reset Fork to Match Upstream

Add Upstream Remote

Do this once after cloning your fork.

git remote add upstream https://github.com/original/repo.git

Fetch and Hard Reset to Upstream

git fetch upstream
git checkout main
git reset --hard upstream/main

This discards all local commits and changes on main — your branch will be an exact copy of upstream’s main.

Push to Your Fork on GitHub

git push origin main --force