--oneline

A flag for git log and git show that prints each commit on one line: its abbreviated ID and its subject.

In more detail

It is the quickest way to see the shape of a history and the reason short subject lines matter. It combines with other flags, as in git log --oneline --graph --all.

Example

git log --oneline -2

Related terms

Taught in

References