The formats of git log
git log --pretty=<format> # or --format=<format>
Selection of formats: oneline
, fuller
, reference
, raw
. medium
is default. More at git docs.
oneline
(aka--oneline
): formats as<hash> <title-line>
fuller
: containshash
,author
,authordate
,commiter
,commitdate
, commit title, and messagereference
: formats as<abbrev-hash> (<title-line>, <short-author-date>)
raw
: shows commit info as stored in the commit object%H
: see list of custom placeholders
Also:
- valid for
git show
,git diff
, etc. --name-only
lists modified files-s
(e.g. forgit show
) suppresses file diffs