Understand origin and upstream
Remote names describe roles. origin normally means the repository you cloned or your writable fork. upstream commonly means the original project in a fork workflow.
Inspect remotes
Add or change a remote
git remote add upstream https://github.com/<owner>/<repository>.git
git remote set-url origin https://github.com/<your-username>/<repository>.git
Sync a fork
The fast-forward-only merge keeps your fork's main aligned without creating a merge commit.
Remote names are configurable
Git does not require the names origin or upstream. The important part is knowing where each remote points and what role it plays.