Skip to content

Instantly share code, notes, and snippets.

Git log command

git log (Lists the commits made in the repository)

git log --reverse (Display the output in reverse)

git log --stat (Show statistics for files modified in each commit)
git log --shortstat (Output only the last line of the --stat format containing total number of modified files, as well as number of added and deleted lines.)

git log --relative-date (Display the date in a relative format e.g. “2 weeks ago”)