git log --since=<date_or_time>
Show commits since a specific date/time.
This command displays commit logs in the current repository that have occurred since the specified date or time.
By using the --since
flag followed by a date or time string in <date_or_time>
, it filters the commit history to only show entries that happened after the provided value.
You can use various date formats such as '2 weeks ago', '2023-01-01', or 'yesterday'.
Other variations include using --after
instead of --since
which functions identically, or combining with flags like --until=<date_or_time>
for a range, -n <count>
to limit the number of commits, or --author=<name>
to filter by a specific author.
Specific examples:
git log --since='2 weeks ago'
git log --since='2023-01-01'
git log --after='yesterday'