git log [options] [--] [path]
-p— show the diff (patch)-#— limit output (e.g.-23to last 23 entries)--since / --until— commits more recent (or older) than given date--stat— abbreviated stats (adds/deletes, modified files)--pretty=thing— Make output pretty. Things include oneline, short, medium, full, fuller, (no fullest), email, raw, format:, tformat:. use tformat if you want a newline at the end of the log --graph— draw those funky git branch gtaphs--author / --committer— filter on specific dude / dudette--grep— filter on keywords in commit messages--all-match— Turn multiple predicates from OR into ANDFormat Options
%H / %h— hash (shortened)%T / %t— tree hash (shortened)%P / %p— parent hash (shortened)%an / %ae / %ad / %ar— Author name, email, date (relative)%cd / %ce / %cd / %cr— Committer name, email, date (relative)%n— newlineDate format can be specific (1961-01-13), or relative ("4 years 23 months"). Can replace spaces with dots: 4.years.23.months. The actual format is undocumented (OF COURSE), but you can look at the approxidate code.