git remote add upstream https://github.com/whoever/whatever.git
git fetch upstream
git checkout master
git rebase upstream/master
git push -f origin master
git remote add upstream https://github.com/whoever/whatever.git
git fetch upstream
git checkout main
git rebase upstream/main
git push -f origin main