git log
cheat sheet.
git log --follow <file>
git log --reverse --ancestry-path c01a2b3c4d^..master
--pretty=<format>
default: medium
formats: oneline, short, medium, full, fuller, reference, email, raw,
format:<string>, tformat:<string>
See the "PRETTY FORMATS" section for some additional details for each format. When =<format> part is omitted, it defaults to medium.
--abbrev-commit
--no-abbrev-commit
shortened commit ids
--oneline
This is a shorthand for "--pretty=oneline --abbrev-commit" used together.