I was prepared to use my Cunningham Law mental model to correct your article, but no. I have nothing to say 😊
I've seen way too many wrong usage of git merge/rebase in lots of article but you get the point and clearly explained it.
Maybe just at the end, instead of
git checkout main
git pull
git checkout feature-branch
git rebase main
I would just do:
git fetch
git rebase origin/main
This avoid checkout main and checkout back to working branch, which may takes times on big repos.