blz
blz

Reputation: 414

How do I see last commit that a line existed before it was deleted in Visual Studio Code?

For example, if in the first commit I've introduced a line 'example-line' to file 'f.txt', and in the third commit I've deleted that line from 'f.txt', and now I'm in the fifth commit. How can I tell in Visual Studio code (or any other simple way) that 'example-line' was deleted in the third commit?

Upvotes: 1

Views: 80

Answers (1)

Romain Valeri
Romain Valeri

Reputation: 21938

You could find the deletion commit with

git log -1 -S "example-line"

(see -S doc here)

Upvotes: 3

Related Questions