How do you find who changed a line and when?
git blame file.php shows, for every line, the commit, author and date of its last change; -L 10,20 limits the range. Then git show <hash> opens the whole commit with context. To find the commit that added or removed specific text — git log -S "text".