Ad space (banner)
🌿Git Lessons
Lesson 44 / 59

Filtering History by Date with git log --since

This lesson covers narrowing history down by date range with git log --since. It's for anyone searching "git log --since usage."

git log --since filters history down to just the commits from a given date onward. Handy for something like "show me changes from last week until now."

In Try It, run git log --since=2026-01-01. Only the commits made on or after January 1, 2026 appear in the history.

A common early mistake is fumbling the date format — you can also use a relative expression like --since="2 weeks ago", but until you're used to it, specifying YYYY-MM-DD explicitly is clearer. In real teams, this option is used for weekly or monthly progress reports, when you want to look back at only the changes within a specific period.

Git
Try it (type this into the pseudo terminal)
git log --since=2026-01-01

🧑‍💻 You can type this command into the Git pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)