gitpractice.dev

brewly — Ch.9 · Ask the history

Exercise 1 of 5

Before you start

Filtering the log

A real history is too long to read. git log can show only what you ask for, and the filters can be combined.

Everything after -- is a file or folder: only commits that changed it are shown.

git log --oneline --author=<name>
commits by one person
git log --oneline --grep=<word>
messages that mention a word
git log --oneline -- <file>
commits that changed a file
git log --oneline --since=2026-01-12
only commits from that day on
You can reopen this any time with “Lesson”.

Continue on a desktop

Typing git on a small screen is no fun. Open this page on a laptop or desktop to practise.

Back to the path