Which commits does the last command list?
$ git log --oneline --graph --all * 031cb08 (HEAD -> main) M1 | * d31e909 (feature) F2 | * 5abfcd9 F1 |/ * 0aa1b2c A $ git log --oneline main..feature
M1onlyF1andF2M1,F1andF2A,F1andF2
main..feature means commits reachable from feature but not from main. The three-dot form would add M1 as well.