commit limiting

git log options that keep only the commits you ask about, by count, date, author or words in the message.

In more detail

-n 3 or -3 shows three commits; --since and --until take dates; --author matches the author name; --grep matches the message and can be given more than once. They combine, so you can start wide and narrow down.

Examples

git log --oneline --since=2024-03-05 --until=2024-03-06
git log --oneline --grep '^feat' --grep '^fix'

Related terms

Taught in

References