How to compare a local git branch with its remote branch

git diff <local branch> <remote>/<remote branch>
git diff main origin/main