Search Git History for a string

Occasionally, when looking at a block of code, I want to find out which commit first introduced a particular word. It could be a function name or a variable name. Or which commit took it out. In Mercurial, I used to use hg grep for this. Fortunately, this is easy to do in git as well.

git log -S <search string> --source --all

source