Rebase local branch with main

git branch --show-current
[ my_branch ]
git checkout main
git pull
git checkout [ my_branch ]
git rebase -i main

If there are any conflicts, resolve them, add them and run git rebase --continue

git push --set-upstream origin [ my_branch ] --force --dry-run

Check for any oddities, if none

git push --set-upstream origin [ my_branch ] --force