I don't think there's an easier way to do this, but I thought I'd ask to be sure.

I have some code where an important line was deleted (by me). I wanted to find out in what commit I accidentally deleted that line. The only way I could find to do it was to start git "diff'ing" on subsequently earlier commits, one by one until I found the commit where the line was changed.

Is there any easier way to find out on what commit a particular part of code was changed?

Edit
Report