After performing a git log
, select two dates, which we shall use to filter in our following command:
git log --since=2008-09-08 --until=2008-09-09
This should give an output as follows:
Using the --since=date
operator filters the logs starting from the specified date and limits it before the date specified using the –until
parameter.
Note
Note that you can also specify relative dates like –since=2.days
or --since=3.months
to filter the output.
If you are wondering if there is a way to perform a search based on a keyword across commits – yes you can, with the –grep
parameter of git log
.