All fixes

Help, I need to know who changed this line and why

Find the commit behind any line of code, with its author, date and the reason it was written.

The fix

  1. git blame -L 10,20 index.html

    Shows commit, author and date for lines 10 to 20.

  2. git show 753b186

    Shows that commit's message and full diff. Drop a leading ^ from the hash if blame printed one.

10,20 is an example. Replace it with your own.

Why this works

blame labels every line with the commit that last touched it. That commit's message and diff usually tell you why. To follow a line through all its changes, not just the last one, use git log -L 10,20:index.html. And -w makes blame skip commits that only changed whitespace.