Git · Everyday workflow

git blame

Shows which commit last changed each line. Use it to understand context, not to assign blame.

Syntax
git blame <file>

Example

Example
git blame src/app.ts

More in this group

git add git commit git commit --amend git diff git fetch git log git mv git pull

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course