matklad
Read post

Always Be Blaming

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

A practical guide to understanding code history beyond simple `git blame`. The author describes a multi-dimensional approach to reading code: understanding a snapshot (2D), tracing its evolution over time (3D), and grasping the original author's intent using 'theory of mind' (4D). Practical tips include using GitHub's web blame interface with keyboard shortcuts (y, b, ctrl+f, cmd-click) to get a 'virtual checkout' at any historical commit. The author also shares a local Emacs-based workflow using a dedicated git worktree, with custom shortcuts to blame a specific line, navigate to parent commits, undo blame steps, and copy GitHub links to commits. A key insight is that `git blame` answers the wrong question — it annotates files, but developers need temporal history of specific code snippets.

    #git
May 18•6m read time•From matklad.github.io
Post cover image
870 Impressions
matklad's image
matklad

Matthias Noback's expertise in PHP and domain-driven design (DDD) offers readers insights into buil...

29 Followers

•

437 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard