Module 2 · Lesson 1 of 46/34 in the course~15 min
Module lessons (1/4)
Reading history with git log & filtering commits
Lesson preview5 hands-on exercises readyGit & Modern Collaboration · Module 2 — History Inspection, Diffs & Time Travel
Navigate commit history with --oneline, graph topology, parent modifiers (~ and ^) and filters.
What you'll learn in this lesson
- Read chronological commit logs clearly with
git log --oneline,--graph, and--all. - Reference relative ancestors accurately using
~N(first-parent chain) and^N(merge parents). - Trace diverged branch topology inside the commit DAG without guessing commit SHAs.
Overview
Plain git log dumps multi-line headers, author timestamps, and commit hashes that quickly scroll past a single screen. Adding compact flags transforms commit history into an executive map of your repository DAG.
Understanding ancestry modifiers (~ vs ^) lets you navigate any parent commit deterministically without copy-pasting 40-character SHAs:
Sections covered in this lesson
- 1Turning
.git/objectsInto a Readable Timeline - 2Inspect History &
~NAncestry Interactively
Pro Lesson · Module 2 — History Inspection, Diffs & Time Travel
Unlock "Reading history with git log & filtering commits" and the full Git & Modern Collaboration curriculum
Navigate commit history with --oneline, graph topology, parent modifiers (~ and ^) and filters.
Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Git & Modern Collaboration plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.