$ ./guess_the_languageGit
Git · medium · #27

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
  1. M1 only
  2. F1 and F2
  3. M1, F1 and F2
  4. A, F1 and F2
main..feature means commits reachable from feature but not from main. The three-dot form would add M1 as well.
Play Git ▸