0

I've read the latter compares the branches starting from their ancestor. What exactly does that mean?

jub0bs
  • 54,300
  • 24
  • 162
  • 166
Alexander Suraphel
  • 9,083
  • 9
  • 48
  • 86

1 Answers1

5

Two dots

git log start-branch..end-branch

(equivalent to git log ^start-branch end-branch).

Lists all the commits reachable from end-branch that are not reachable from start-branch.

Three dots

git log start-branch...end-branch

Lists all commits that are reachable from either start-branch or end-branch but not reachable from both start-branch and end-branch.

References

jub0bs
  • 54,300
  • 24
  • 162
  • 166
flafoux
  • 2,020
  • 1
  • 11
  • 13