This is an old revision of the document!
Overview
Discussion of git log, with emphasis on reachability.
Reachability
git log displays repository history based on reachability:
o---o---o---o---o master
\ \
o---o---o---o---o next
\
o---o---o topic
Identify the specific starting point(s):
$ git log master $ git log topic master
Identify revisions not of interest:
$ git log next --not master $ git log next ^master $ git log next topic ^master $ git log b1 b2 b3 ... ^b8 ^b9 v1.0 v2.0 ...
Given this history:
o---o---o---o---o master
\ \
o---o---o---o---o next
\
o---o---o topic
there is a special notation for the most common exclusion (remember this one for rebasing):
$ git log next ^master $ git log master..next