git: using blame to see when a line was modified

2022-01-09

 | 

~1 min read

 | 

68 words

In VSCode, there’s a built in git blame feature that will allow you to inspect who is responsible for the last change to a line.

This is also possible from the terminal:

% git blame -L 12,25 foo.js

In this case I ran the blame on a javascript file, foo.js for lines 12 through 25.

The output takes the format of: [hash] [file] ([author] [date]) [change].



Hi there and thanks for reading! My name's Stephen. I live in Chicago with my wife, Kate, and dog, Finn. Want more? See about and get in touch!