Search History with grep, log -S and log -G

Prepare a post-mortem: when did the connection cap appear, when did a flag die, how often did the log format change, and what did the 1.0.0 release actually contain?

Project labadvanced~25 minPro

What you'll do

  • ✓Search a past release with git grep <rev>
  • ✓Find when a string appeared or disappeared with log -S
  • ✓Find every change to a matching line with log -G
  • ✓Explain why -S misses value-only changes

Lab outline

  1. 01git grep
  2. 02log -S
  3. 03log -G

Before you start

  • Reading history (git-07)

Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.

← All Git labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime