A plain commit range can’t see that a commit was cherry-picked or rebased onto main under a new hash. git cherry compares the changes themselves.
git cherry -v main
Run on your branch, this lists the commits that aren’t on main yet, one per line. A + means the change isn’t upstream. A - means a commit with the same patch already exists on main, even if it has a different hash. -v adds the subject so you know which commit is which:
+ ee66d74 Add export button
- 3f0dfd6 Fix typo in footer
Here the typo fix already landed on main through a cherry-pick, so only the export button is still waiting. You can name both sides too: git cherry -v main feature.
I find it most useful after a maintainer applied part of your branch by hand, or when you keep a backport branch next to main. Everything with a minus can usually go before you rebase.
The match uses the patch ID, which ignores whitespace and line numbers but not real edits. If someone tweaked your commit while picking it, even by one word, the changed copy counts as different and you still get a plus. So a plus means “not found in this exact form”, not “missing”.
Further reading: git-cherry documentation