If you fork a repository from GitHub, Gitlab or any other places, you will probably need to rebase from time to time to the upstream project.

So just add another remote:

git remote add upstream

And when needed, update your branch:

git fetch upstream
git checkout master # or any other branch
git rebase upstream/master
git push