git blame

Show who changed each line

low risk

interactive breakdown — edit the command and press Explain
$ 
What it does

Annotates lines with the last commit. See the flags and examples below, and run `man git` for the full reference.

Common flags
FlagMeaning
-LLine range
-wIgnore whitespace
Examples
git blame -L 10,30 fileBlame lines 10-30 · explain & risk-check →
Related
git log
Open the full explainer →More in Git

Reference text is hand-written and may be incomplete — check man git for your version. Test destructive commands on a non-production system first.