UP | HOME

Search git log in date range

Use --since and --until to limit the date range when calling git log. The date should be in the form of YYYY-mm-dd.

For example:

git log --since 2018-12-31 --until 2019-01-10

It's even better to use short form of log:

git log --pretty=format:'%C(yellow)%h %Cblue%>(12)%ad %Cgreen%<(7)%aN%Cred%d %Creset%s' --date=short --since 2018-12-31 --until 2019-01-10

Date: 2019-02-21 Thu 00:00

Author: Huy Tran

Created: 2019-04-22 Mon 14:41