This will show you all not pushed commits from all branches
git log --branches --not --remotes
and this will show you all your local commits of branch main
git log origin/main..main
This will show you all not pushed commits from all branches
git log --branches --not --remotes
and this will show you all your local commits of branch main
git log origin/main..main