git blame <file> shows who last modified each line, when, and in which commit.
git blame -L 10,20 file.js — blame lines 10-20 only
git blame -w — ignore whitespace changes
git blame -C — detect code moved between files
Combine with git show <hash> to see the full commit. Not for finger-pointing — for understanding why code exists.