GitCheatSheet.org logo
Home / How To

Filter the log entries by date range

Displaying commits made between 2021-01-01 (inclusive) and 2021-02-01 (exclusive):

# Using before and after
git log --after="2021-01-01" --before="2021-02-01"

# Using since and until
git log --since="2021-01-01" --until="2021-02-01"

Note: The "--after" and "--since" results INCLUDE the specified date ( >= ), while the "--before" and "--until" EXCLUDE the specified date ( < ).